[fpc-devel] Re: compiler bug?

Jeff Pohlmeyer yetanothergeek at yahoo.com
Fri Dec 31 10:34:05 CET 2004


How about this one:


program problem;
begin
  Write('Test One: ');
  if ( boolean(255) ) then WriteLn(True) else WriteLn(False);
  Write('Test Two: ');
  WriteLn( boolean(255) );
end.


FPC 1.9.4 output:
  Test One: FALSE
  Test Two: TRUE

Kylix 1.0 output:
  Test One: TRUE
  Test Two: Segmentation fault



Looks like *somebody* has a compiler bug, anyway ;-)




		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 





More information about the fpc-devel mailing list