www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 94] New: incorrect symbols generated for "class Object"

reply d-bugmail puremagic.com writes:
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


-- 
Apr 08 2006
next sibling parent d-bugmail puremagic.com writes:
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


-- 
Apr 08 2006
prev sibling parent d-bugmail puremagic.com writes:
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


-- 
Apr 10 2006