[Issue 6159] New: [CTFE] ICE(constfold.c) on 'is' with structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 15 00:01:36 PDT 2011


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

           Summary: [CTFE] ICE(constfold.c) on 'is' with structs
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: yebblies at gmail.com


--- Comment #0 from yebblies <yebblies at gmail.com> 2011-06-14 23:56:56 PDT ---
bool bug()
{
    struct A {}
    return A.init is A.init;
}

void main()
{
    enum b = bug();
}

Crashes dmd1.068 & dmd2.053

-- 
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