[Issue 7545] ICE(cast.c) Merge integral types through alias this
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 19 07:51:36 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7545
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice
CC| |yebblies at gmail.com
AssignedTo|nobody at puremagic.com |yebblies at gmail.com
Summary|DMD 2.058 ICE cast.c line |ICE(cast.c) Merge integral
|2082 assert(t1->ty == |types through alias this
|t2->ty) |
--- Comment #1 from yebblies <yebblies at gmail.com> 2012-02-20 02:51:35 EST ---
Reduced:
struct S7545
{
uint id;
alias id this;
}
void test7545()
{
auto id = 0 ? S7545() : -1;
}
Workaround:
auto id = 0 ? S7545() : cast(uint)-1;
--
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