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


Rainer Schuetze <r.sagita...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |r.sagita...@gmx.de


--- Comment #6 from Rainer Schuetze <r.sagita...@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: -------

Reply via email to