[Issue 3906] New: Undefined struct and union declarations are not documented
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 8 21:55:00 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3906
Summary: Undefined struct and union declarations are not
documented
Product: D
Version: 2.041
Platform: All
URL: http://digitalmars.com/d/2.0/struct.html
OS/Version: All
Status: NEW
Keywords: spec
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jlquinn at optonline.net
--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 2010-03-08 21:54:59 PST ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list