[fpc-devel] Const optimization is a serious bug

Martin Schreiber mse00000 at gmail.com
Fri Jul 8 18:43:29 CEST 2011


On Thursday 07 July 2011 19:22:27 Florian Klämpfl wrote:
>
> Why? 2) is exactly the same? The const contract with the compiler is
> broken.
>
> Besides this, people like Martin Schreiber won't be happy if a procedure
> suddently eats hundreds of extra clock cycles for nothing.
>
Here you are very true. :-)
I had the problem of crashing const UnicodeString parameter in MSEgui too. 
Heaptrace helped to quickly find the cause.

Martin



More information about the fpc-devel mailing list