[Issue 2386] Array of forward referenced struct doesn't compile
https://issues.dlang.org/show_bug.cgi?id=2386 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.019 |D2 --
[Issue 2386] Array of forward referenced struct doesn't compile
http://d.puremagic.com/issues/show_bug.cgi?id=2386 bearophile_h...@eml.cc changed: What|Removed |Added Status|NEW |RESOLVED CC||bearophile_h...@eml.cc Resolution||FIXED --- Comment #3 from bearophile_h...@eml.cc 2010-05-15 17:53:20 PDT --- This is fixed in v2.046 and v1.061. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2386] Array of forward referenced struct doesn't compile
http://d.puremagic.com/issues/show_bug.cgi?id=2386 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #2 from Walter Bright bugzi...@digitalmars.com 2010-05-10 13:39:09 PDT --- changeset 429 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2386] Array of forward referenced struct doesn't compile
http://d.puremagic.com/issues/show_bug.cgi?id=2386 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added Keywords||patch CC||r.sagita...@gmx.de --- Comment #1 from Rainer Schuetze r.sagita...@gmx.de 2010-03-27 06:17:13 PDT --- Here's a patch that simply invokes the semantics of the forward referenced struct. Index: struct.c === --- struct.c(revision 421) +++ struct.c(working copy) @@ -115,6 +115,8 @@ //printf(AggregateDeclaration::size() = %d\n, structsize); if (!members) error(loc, unknown size); +if (sizeok != 1 scope) +semantic(NULL); if (sizeok != 1) {error(loc, no size yet for forward reference); //*(char*)0=0; This patch also fixes #2654 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---