[Issue 4961] New: ICE on Tuple in union as part of static struct member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 30 12:52:32 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4961
Summary: ICE on Tuple in union as part of static struct member
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: simen.kjaras at gmail.com
--- Comment #0 from Simen Kjaeraas <simen.kjaras at gmail.com> 2010-09-30 12:52:16 PDT ---
The below code crashes DMD with the following message:
Assertion failure: 'existing->op == TOKstructliteral' on line 2090 in file
'interpret.c'
abnormal program termination
////////////////////////////
import std.typecons;
struct bar {
static bar b = bar( 0 );
union {
int[1] value;
Tuple!( int ) fields;
}
this( int r ) {
fields.expand[0] = r;
}
}
--
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