[Issue 9387] Compiler switch -O changes behavior of correct code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 25 06:53:51 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9387



--- Comment #5 from Stephan <stephan.schiffels at mac.com> 2013-01-25 06:53:50 PST ---
(In reply to comment #3)
> I can't reproduce this with the latest dmd. I'll upload a new beta tomorrow you
> can try.

Sorry to jump back and forth here. I have to again correct my previous
statement: With the latest version of dmd/druntime/phobos (2.062 from git),
this bug does occur!
But only when you compile and run separately. When you use dmd -run, both
versions with and without -O work fine. This is quite weird.

So:
dmd -O brent_test.d
./brent_test

should produce a different outcome than

dmd brent_test.d
./brent_test

I will try use bisect to find out when this bug was introduced.

Stephan

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list