Bug 16515 – Linker Error When Using -debug

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-09-20T22:24:46Z
Last change time
2024-12-13T18:50:11Z
Assigned to
No Owner
Creator
Jack
Moved to GitHub: dmd#19193 →

Attachments

IDFilenameSummaryContent-TypeSize
1614test.zipprojapplication/x-zip-compressed1994

Comments

Comment #0 by gyroheli — 2016-09-20T22:24:46Z
Created attachment 1614 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 by gyroheli — 2016-09-21T00:26:18Z
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 by robert.schadek — 2024-12-13T18:50:11Z
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