http://d.puremagic.com/issues/show_bug.cgi?id=5294
Summary: loop optimization (-O) gone crazy Product: D Version: unspecified Platform: Other OS/Version: Windows Status: NEW Severity: blocker Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: s...@extrawurst.org --- Comment #0 from Stephan Dilly <s...@extrawurst.org> 2010-12-01 03:30:24 PST --- void cpv(float x) {} void main(){ int cnt; for(int i=0; i<30; i++) { cnt++; cpv(i*60 - 100); // comment this out and it makes 30 loops } writefln("%s",cnt); // compile with -O and it prints 1 } tested with dmd2.050 using -O for optimization. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------