Summary: optimizer/inliner misplaces load instruction
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Ellery Newcomer <> 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

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:
------- You are receiving this mail because: -------

Reply via email to