[Issue 4014] New: CodeView debug type info not linked in from library

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 27 01:33:14 PDT 2010


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

           Summary: CodeView debug type info not linked in from library
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: r.sagitario at gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2010-03-27 01:33:12 PDT ---
If a class is defined in a library, the debug info describing that class is not
linked into an executable, if it does not reference the init-property.

Example:
----
module lib;

struct struc_lib
{
    int a, b;
}

----
dmd -g -lib lib
----
module test;
import lib;

void main()
{
    struc_lib slib;
}
----
dmd -g test lib.lib
----

This produces incomplete debug info for struc_lib.

Using

    struc_lib slib = struc_lib.init;

helps.

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