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
Comment #2 by k.hara.pg — 2015-03-03T13:23:22Z
Comment #3 by github-bugzilla — 2015-03-04T07:25:04Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c779ec72240f6b110af0b9f3a0d3cc4a0bf271ee fix Issue 7104 - linker error on void main(){ typeof(new class{}) c; c = new typeof(c); } https://github.com/D-Programming-Language/dmd/commit/e59c181051348d4b3a2c2fc0168dca36ab8958fd Merge pull request #4453 from 9rnsr/fix7104 Issue 7104 - linker error on void main(){ typeof(new class{}) c; c = new typeof(c); }
Comment #4 by github-bugzilla — 2015-06-17T21:01:37Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c779ec72240f6b110af0b9f3a0d3cc4a0bf271ee fix Issue 7104 - linker error on void main(){ typeof(new class{}) c; c = new typeof(c); } https://github.com/D-Programming-Language/dmd/commit/e59c181051348d4b3a2c2fc0168dca36ab8958fd Merge pull request #4453 from 9rnsr/fix7104
Comment #5 by k.hara.pg — 2015-06-30T05:26:04Z
*** Issue 14454 has been marked as a duplicate of this issue. ***