[Issue 23076] [ICE][backend][REG] Crash with -inline -O
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun May 29 06:49:47 UTC 2022
    
    
  
https://issues.dlang.org/show_bug.cgi?id=23076
Walter Bright <bugzilla at digitalmars.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
Reduced it to:
struct S
{
    int depthLow = 0;
    int depthHigh = 30000;
    void fun(int* pixels)
    {
        float b = depthLow;
        int depthA = cast(int)(b);
        int depthB = cast(short)(cast(float)depthHigh * cast(float)depthLow);
        pixels[depthA] = depthB;
    }
}
compile with -O
--
    
    
More information about the Digitalmars-d-bugs
mailing list