D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16515 - Linker Error When Using -debug
Summary: Linker Error When Using -debug
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL: http://dlang.org/
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-20 22:24 UTC by Jack
Modified: 2024-12-13 18:50 UTC (History)
0 users

See Also:


Attachments
proj (1.95 KB, application/x-zip-compressed)
2016-09-20 22:24 UTC, Jack
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Jack 2016-09-20 22:24:46 UTC
Created attachment 1614 [details]
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
}
Comment 1 Jack 2016-09-21 00:26:18 UTC
The linker being for "test.v.init", it seems it is trying to create "test.q.init" but can't as it can't find the symbol for "test.v.init". Though it shouldn't be constructing "test.q.init" anywhere, removing "-debug" from the compiler option fixes the issue.
Comment 2 dlangBugzillaToGithub 2024-12-13 18:50:11 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19193

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB