Bug 7104 – linker error on void main(){ typeof(new class{}) c; c = new typeof(c); }
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-12-13T09:12:00Z
Last change time
2015-06-30T05:26:04Z
Keywords
link-failure, pull
Assigned to
nobody
Creator
timon.gehr
Comments
Comment #0 by timon.gehr — 2011-12-13T09:12:47Z
void main(){ typeof(new class{}) c;c = new typeof(c); }
In function `_Dmain':
(.text._Dmain+0x9): undefined reference to `_Dmain13__anonclass147__ClassZ'
collect2: ld returned 1 exit status
The program should compile and link fine.
Comment #1 by andrej.mitrovich — 2013-02-03T10:26:44Z