[Issue 5332] Undefined reference to zero length array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 9 05:47:08 PST 2010


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


Iain Buclaw <ibuclaw at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at ubuntu.com


--- Comment #1 from Iain Buclaw <ibuclaw at ubuntu.com> 2010-12-09 05:45:27 PST ---
Actually, it's something else. DMD doesn't output var declarations that have no
size.

Patch to always write out globals:

--- dmd~/toobj.c    2010-11-19 22:39:05.011906002 +0000
+++ dmd/toobj.c 2010-12-09 13:29:19.672718003 +0000
@@ -1287,7 +1287,7 @@
         else
             s->Sseg = DATA;
 #endif
-        if (sz)
+        if (1 || sz)
         {   outdata(s);
             if (isExport())
                 obj_export(s,0);


Regards

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