Thread overview
[Bug 94] New: incorrect symbols generated for "class Object"
Apr 08, 2006
d-bugmail
Apr 08, 2006
d-bugmail
Apr 11, 2006
d-bugmail
April 08, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=94

           Summary: incorrect symbols generated for "class Object"
           Product: D
           Version: 0.152
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: link-failure
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: thomas-dloop@kuehne.cn


module somemodule;

class Object{
   int i;
}

int main(){
    return 0;
}

dmd
/opt/dmd/dmd/lib/libphobos.a(object.o):(.rodata+0x8): multiple definition of
`_init_6Object'
a.o:(.rodata+0x0): first defined here
/opt/dmd/dmd/lib/libphobos.a(object.o):(.data+0x0): multiple definition of
`_Class_6Object'
a.o:(.data+0x0): first defined here
/opt/dmd/dmd/lib/libphobos.a(object.o):(.rodata+0x18): multiple definition of
`_vtbl_6Object'
a.o:(.rodata+0x10): first defined here
collect2: ld returned 1 exit status


-- 

April 08, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=94





------- Comment #1 from thomas-dloop@kuehne.cn  2006-04-08 14:12 -------
test cases:
http://dstress.kuehne.cn/run/o/object_01_A.d
http://dstress.kuehne.cn/run/o/object_01_B.d
http://dstress.kuehne.cn/run/o/object_01_C.d
http://dstress.kuehne.cn/run/o/object_01_D.d


-- 

April 11, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=94


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from bugzilla@digitalmars.com  2006-04-11 01:34 -------
Fixed 0.153


--