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. ***
Comment #2 by bugzilla — 2013-10-02T15:55:59Z
Comment #3 by github-bugzilla — 2013-10-03T01:07:48Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4df9995e5a6bf4295663459574e8d17506a97585 fix Issue 7474 - ICE(cgcs.c) on instantiating a struct with field and destructor as tuple https://github.com/D-Programming-Language/dmd/commit/5ba579fb49605eeebbe21ef4476a6c7974206c01 Merge pull request #2619 from WalterBright/fix7474 fix Issue 7474 - ICE(cgcs.c) on instantiating a struct with field and destructor as tuple
Comment #4 by github-bugzilla — 2013-10-04T12:08:55Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f71253a4f39e8f0273087e9e060f31bbcba75f4a Merge pull request #2619 from WalterBright/fix7474 fix Issue 7474 - ICE(cgcs.c) on instantiating a struct with field and destructor as tuple