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: nob...@puremagic.com ReportedBy: k.hara...@gmail.com --- Comment #0 from Kenji Hara <k.hara...@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: -------