Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker Error When Using -debug #19193

Open
dlangBugzillaToGithub opened this issue Sep 20, 2016 · 1 comment
Open

Linker Error When Using -debug #19193

dlangBugzillaToGithub opened this issue Sep 20, 2016 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

Jack reported this on 2016-09-20T22:24:46Z

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

Description

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
}

!!!There are attachements in the bugzilla issue that have not been copied over!!!

@dlangBugzillaToGithub
Copy link
Author

gyroheli commented on 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant