D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18897 - Missing 'internal' symbol when linking against library with new expression in class
Summary: Missing 'internal' symbol when linking against library with new expression in...
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-23 12:57 UTC by FeepingCreature
Modified: 2024-12-13 18:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description FeepingCreature 2018-05-23 12:57:56 UTC
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'
Comment 1 FeepingCreature 2018-05-23 12:58:42 UTC
scuse me, make that
B.d:
import C;

class B : C { }
Comment 2 dlangBugzillaToGithub 2024-12-13 18:58:52 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

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

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