digitalmars.D.bugs - [Issue 9485] New: associative array inside struct: intermodule visibility problem
- d-bugmail puremagic.com (45/45) Feb 08 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9485
- d-bugmail puremagic.com (10/10) Feb 08 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9485
- d-bugmail puremagic.com (7/7) Feb 08 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9485
- d-bugmail puremagic.com (11/11) Feb 17 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9485
http://d.puremagic.com/issues/show_bug.cgi?id=9485 Summary: associative array inside struct: intermodule visibility problem Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: atankeev gmail.com PST --- --[ testcase.d ]-- import std.stdio; import somelib; void main() { foo t; t.bar[10] = "bar"; writeln(t); } -- [ EOF ]-- --[ somelib.d ] module somelib; struct foo { string[int] bar; } --[ EOF ]-- $ dmd -c somelib.d $ dmd -c testcase.d $ dmd testcase.o somelib.o testcase.o: In function `_D3std6format61__T11formatValueTS3std5stdio4File17LockingTextWriterTHiAyaTaZ11formatValueFS3std5stdio4File17LockingTextWriterHiAyaKS3std6format18__T10FormatSpecTaZ10FormatSpecZv': testcase.d:(.text._D3std6format61__T11formatValueTS3std5stdio4File17LockingTextWriterTHiAyaTaZ11formatValueFS3std5stdio4File17LockingTextWriterHiAyaKS3std6format18__T10FormatSpecTaZ10FormatSpecZv+0x98): undefined reference to `_D6object28__T16AssociativeArrayTiTAyaZ16AssociativeArray6lengthMFNdZm' collect2: error: ld returned 1 exit status --- errorlevel 1 In LDC it works fine. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 08 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9485 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich gmail.com 08:19:50 PST --- Confirmed on win32, only happens with separate compilation. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 08 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9485 17:28:40 PST --- Very similar to Issue 6744. Both are linker errors about a missing "length" symbol in the associative array. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 08 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9485 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE *** This issue has been marked as a duplicate of issue 8997 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 17 2013