www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10905] New: [ICE](ctfeexpr.c line 355) with ulong2 in structs

http://d.puremagic.com/issues/show_bug.cgi?id=10905

           Summary: [ICE](ctfeexpr.c line 355) with ulong2 in structs
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-08-26 15:04:12 PDT ---
import core.simd: ulong2;
struct Foo {
    enum ulong2 y = 1;
}
struct Bar {
    ulong2 x;
    bool spam() const {
        return x == Foo.y;
    }
}
void main() {}



DMD 2.064alpha gives:

test.d(3): Error: Internal Compiler Error: CTFE literal
cast(__vector(ulong[2u]))1LU
Assertion failure: '0' on line 355 in file 'ctfeexpr.c'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 26 2013