[Issue 9174] New: [ICE](cast.c line 2463) with ternary operator with mixed alias this types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 17 15:57:29 PST 2012


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


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


More information about the Digitalmars-d-bugs mailing list