[Issue 3168] Declaring structs as incomplete types no longer works
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 6 13:08:08 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3168
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch, rejects-valid
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-08-06 13:08:07 PDT ---
Patch: Change one line in struct.c line 64. (This makes it the same as the code
in D2).
---
void AggregateDeclaration::semantic2(Scope *sc)
{
//printf("AggregateDeclaration::semantic2(%s)\n", toChars());
- if (scope)
+ if (scope && members)
{ error("has forward references");
return;
}
--
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