[Issue 945] template forward reference with named nested struct only

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 27 06:22:45 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=945


Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |r.sagitario at gmx.de


--- Comment #6 from Rainer Schuetze <r.sagitario at gmx.de> 2010-03-27 06:22:43 PDT ---
Here's a patch that invokes the missing semantics. It also fixes issue #1055


Index: struct.c
===================================================================
--- struct.c    (revision 421)
+++ struct.c    (working copy)
@@ -178,6 +178,8 @@
         error("cannot have field %s with same struct type", v->toChars());
     }
 #endif
+    if (ts->sym->sizeok != 1 && ts->sym->scope)
+        ts->sym->semantic(NULL);

     if (ts->sym->sizeok != 1)
     {

-- 
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