[Issue 6929] New: [ICE] typeMerge crashes in presence of ambiguous alias this conversions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 10 08:30:23 PST 2011
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: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 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: -------
More information about the Digitalmars-d-bugs
mailing list