Bug 13513 – class with void array member generate anonymous error
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-09-20T19:26:00Z
Last change time
2014-09-20T19:28:47Z
Keywords
diagnostic
Assigned to
nobody
Creator
andrea.9940
Comments
Comment #0 by andrea.9940 — 2014-09-20T19:26:04Z
Compiling the following code with DMD v2.066.0 returns an error without the line where it is located.
class A {
void[1] x;
}
--------------
Error: void does not have a default initializer
Comment #1 by andrea.9940 — 2014-09-20T19:28:47Z
*** This issue has been marked as a duplicate of issue 13505 ***