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

Missing 'internal' symbol when linking against library with new expression in class #19439

Open
dlangBugzillaToGithub opened this issue May 23, 2018 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

FeepingCreature (@FeepingCreature) reported this on 2018-05-23T12:57:56Z

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

Description

Files:

A.d:

import B;

B.d:

class B : C { }

C.d:

static this() { }
class C { Object obj = new Object; }

Repro:

dmd -lib -oflibmylib.a B.d C.d
dmd -main A.d libmylib.a

Expected:

No error

Outcome:

libmylib.a(C_4_43.o):(.data._D1C1C6__initZ+0x10): undefined reference to `internal'
@dlangBugzillaToGithub
Copy link
Author

default_357-line (@FeepingCreature) commented on 2018-05-23T12:58:42Z

scuse me, make that
B.d:
import C;

class B : C { }

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