Bug 10629 – [ICE](dt.c 106) with void array

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-07-13T07:05:00Z
Last change time
2014-08-10T12:54:45Z
Keywords
diagnostic
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2013-07-13T07:05:43Z
class Foo {} struct Bar { void[__traits(classInstanceSize, Foo)] x; } void main() { Bar f; } It generates an ICE and the first error message has no line number, dmd 2.064alpha: Error: void does not have a default initializer Internal error: backend\dt.c 106
Comment #1 by henning — 2013-07-13T13:39:21Z
Comment #2 by yebblies — 2013-11-20T22:22:15Z
Cannot reproduce.
Comment #3 by bearophile_hugs — 2013-11-21T03:14:51Z
Closed.
Comment #4 by github-bugzilla — 2014-08-10T12:54:41Z