[Issue 2703] Duplicate constructors and methods

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 2 08:03:29 PST 2009


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


gide at nwawudu.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|duplicate constructors      |Duplicate constructors and
                   |                            |methods




------- Comment #1 from gide at nwawudu.com  2009-03-02 10:03 -------
Probably not just a duplicate ctor problem, as the following code also compiles
without error and fails on linking.

class C {
 void test() {}
 void test() {}
}

void main() {
}

C:> dmd -c test.d

C:> dmd test.d
OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
test.obj(test)  Offset 002E1H Record Type 00C3
 Error 1: Previous Definition Different : _D4test1C5helloMFZv
test.obj(test)  Offset 0031FH Record Type 00C3
 Error 1: Previous Definition Different : _D4test1C2t2MFiZv
--- errorlevel 2


-- 



More information about the Digitalmars-d-bugs mailing list