www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17695] New: [Reg 2.076] ICE with vector negation

https://issues.dlang.org/show_bug.cgi?id=17695

          Issue ID: 17695
           Summary: [Reg 2.076] ICE with vector negation
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

cat > bug.d << CODE
void bug(__vector(ubyte[16]) a)
{
    auto b = -a;
}
CODE
dmd -c -O bug.d
----
el:0x19531a0 cnt=0 const  TYunsigned char[16] 0LL+0LL 
Internal error: ddmd/backend/el.c 3034
----
Happens with
DMD64 D Compiler v2.075.0-master-234b414

Introduced by https://github.com/dlang/dmd/pull/7019.

--
Jul 26