www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: timon.gehr gmx.ch



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: -------
Dec 13 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7104


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |link-failure, pull
                 CC|                            |andrej.mitrovich gmail.com
           Platform|Other                       |All
         AssignedTo|nobody puremagic.com        |andrej.mitrovich gmail.com
         OS/Version|Linux                       |All



10:26:44 PST ---
https://github.com/D-Programming-Language/dmd/pull/1607

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