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

           Summary: [ICE](cast.c line 2463) with ternary operator with
                    mixed alias this types
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2012-12-17 15:57:28 PST ---
struct Foo {
    char x;
    alias x this;
}
void main() {
    auto r = true ? 'A' : Foo();
}


DMD 2.061alpha gives:

Assertion failure: 't1->ty == t2->ty' on line 2463 in file 'cast.c'

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

Reply via email to