[Issue 19343] New: [regression] SORA breaks valid code with -O
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Oct 30 15:59:53 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=19343
          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 at puremagic.com
          Reporter: uplink.coder at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list