www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16515] New: Linker Error When Using -debug

https://issues.dlang.org/show_bug.cgi?id=16515

          Issue ID: 16515
           Summary: Linker Error When Using -debug
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: gyroheli gmail.com

Created attachment 1614
  --> https://issues.dlang.org/attachment.cgi?id=1614&action=edit
proj

I get a linker error for "test.v" even though "test.q" is never used. If you
remove the "test.v" member from "test.q" then the linker error no longer
happens.

struct Q(_T)
{
    V!(1, _T) v; // removing this fixes link error
}

--
Sep 20 2016