[Issue 8710] New: std.typecons.Tuple and double declared nested struct crashes dmd
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 23 05:36:43 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8710
Summary: std.typecons.Tuple and double declared nested struct
crashes dmd
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ice
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-09-23 05:37:41 PDT ---
Test case:
----
import std.typecons;
void main() {
{ struct S {} }
{ struct S {
bool opEquals(T)(T a) { return false; }
}
auto t1 = tuple(S.init); // crash dmd
}
}
----
Reduced test case doesn't crash dmd, but cause an ICE.
struct Tuple(T...) { T field; }
void main() {
{ struct S {} }
{ struct S {
bool opEquals(T)(T a) { return false; }
}
auto t2 = Tuple!(S)(S.init); // ICE
// assert struct.c(227) alignment > 0 && !(alignment & (alignment - 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