[Issue 11223] New: inline ice with tuple assignment and if/else
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 10 21:23:14 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11223
Summary: inline ice with tuple assignment and if/else
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ice
Severity: regression
Priority: P4
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-10-10 21:23:13 PDT ---
cat > bug.d << CODE
struct Tuple(T...)
{
T values;
void opAssign(Tuple rhs)
{
if (0)
values = rhs.values;
else
assert(0);
}
}
void bug()
{
Tuple!string tmp;
tmp = Tuple!string();
}
CODE
dmd -c -inline bug
----
glue.c:1265: virtual unsigned int Type::totym(): Assertion `0' failed.
----
I reduced that test case from the vibe.d source code. The ICE is triggered by
the opAssign in std.typecons.Tuple so this might affects a lot of code and
fixing the regression is very important.
--
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