D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3906 - Undefined struct and union declarations are not documented
Summary: Undefined struct and union declarations are not documented
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL: http://digitalmars.com/d/2.0/struct.html
Keywords: spec
Depends on:
Blocks:
 
Reported: 2010-03-08 21:54 UTC by Jerry Quinn
Modified: 2014-02-15 02:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jerry Quinn 2010-03-08 21:54:59 UTC
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.