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

           Summary: [ICE] typeMerge crashes in presence of ambiguous alias
                    this conversions
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2011-11-10 08:29:45 PST ---
T t;
S s;
struct S{
    T get() const {return t;}
    alias get this;
}
struct T{
    S get() const {return s;}
    alias get this;
}
static assert(is(typeof(1? t:s)));

Fails with:

dmd: cast.c:1908: int typeMerge(Scope*, Expression*, Type**, Expression**,
Expression**): Assertion `!(i1 && i2)' failed.

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

Reply via email to