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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 26 15:04:13 PDT 2013


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 at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list