[Issue 7104] New: linker error on void main(){ typeof(new class{}) c; c = new typeof(c); }

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 13 09:12:50 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7104

           Summary: linker error on void main(){ typeof(new class{}) c; c
                    = new typeof(c); }
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2011-12-13 09:12:47 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list