Bug 3906 – Undefined struct and union declarations are not documented

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-03-08T21:54:00Z
Last change time
2014-02-15T02:43:55Z
Keywords
spec
Assigned to
nobody
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2010-03-08T21:54:59Z
It seems the grammar was updated to permit the following code: struct Z; However, there is no documentation on what this does. Trying dmd 2.041, this compiles. However, trying the following (as expected from C/C++): struct Z; struct Z {} gives this error: junk.d(2): Error: struct junk.Z conflicts with struct junk.Z at junk.d(1) Something is amiss here.
Comment #1 by github-bugzilla — 2012-01-22T12:31:23Z