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

           Summary: optimizer/inliner misplaces load instruction
           Product: D
           Version: D2
          Platform: x86_64
        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> 2012-02-13 
11:32:09 PST ---
At least I'm guessing that is what is happening, as my intel x86_64 fu is weak.

the compilation:

dmd -O -inline xyz

the fireworks:

core.exception.AssertError@xyz.d(61): dookie 6

the code:

attached, I hope. Offending line is

assert((z=xyz1!byte(0,8,5,6)) == 6,format("dookie %s",z)); // yay! 6==6 is
false!

Compiled without -O or -inline, or if the preceding assertion is removed, or if
the following calls are removed, the assertion passes. This one was lots of fun
to reduce.

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

Reply via email to