Bug 7474 – ICE(cgcs.c) on instantiating a struct with field and destructor as tuple
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-09T11:18:00Z
Last change time
2013-10-06T22:13:42Z
Keywords
ice
Assigned to
nobody
Creator
sludwig
Comments
Comment #0 by sludwig — 2012-02-09T11:18:59Z
The following code produces "Internal error: ..\ztc\cgcs.c 354".
---
struct S {
float x;
~this() {}
}
void fun(T...)() { T x; }
void gun() { fun!S(); }
---
Changing float to byte, short, int, long or the unsigned variants of these makes the code compile. All other primitive types seem to fail.
Comment #1 by yebblies — 2013-01-02T20:42:52Z
*** Issue 8761 has been marked as a duplicate of this issue. ***