www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19343] New: [regression] SORA breaks valid code with -O


          Issue ID: 19343
           Summary: [regression] SORA breaks valid code with -O
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: uplink.coder gmail.com

The bug appears when compiling the following code with -O

void f(real x) {(x) {} (x); ulong m = *cast(ulong *) &x;}

The compiler will assert fixresult_x87() in cg87.c because the size of the elem
is bigger then DBLSIZE (usually 8).
it seems that for some reason the enregistering of &x, is not undone.
before extracting the first 64 bits of it.

This is a rather serious bug which hints towards further problems inside the
SORA code.

Oct 30 2018