http://d.puremagic.com/issues/show_bug.cgi?id=5364
Summary: optimizer kills high dword of -1 Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: ellery-newco...@utulsa.edu --- Comment #0 from Ellery Newcomer <ellery-newco...@utulsa.edu> 2010-12-22 21:53:58 PST --- dmd 2.050. the code: import std.stdio; long b(long bmax){ if(true){ } if(bmax >= 0) bmax = -1; return bmax; } void main(){ writeln(b(0)); } the compilation: dmd -O -inline test.d the result: 4294967295 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------