[Issue 1140] New: ICE casting tuple member to tuple struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 13 06:52:26 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1140
Summary: ICE casting tuple member to tuple struct
Product: D
Version: 1.012
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: clugdbug at yahoo.com.au
Useless bit of code, but it shouldn't ICE.
Internal error: ..\ztc\cod1.c 3282
-----------
struct Dog(B...)
{
B values;
static Dog!(B) create(B x) {
return *cast(Dog!(B)*)(&x[1]);
}
}
void main()
{
auto c = Dog!(int, int).create(7,4);
}
--
More information about the Digitalmars-d-bugs
mailing list