digitalmars.D.bugs - [Issue 2703] New: duplicate constructors
- d-bugmail puremagic.com (23/23) Mar 01 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2703
- d-bugmail puremagic.com (25/25) Mar 02 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2703
- d-bugmail puremagic.com (12/12) Jun 10 2011 http://d.puremagic.com/issues/show_bug.cgi?id=2703
http://d.puremagic.com/issues/show_bug.cgi?id=2703 Summary: duplicate constructors Product: D Version: 1.030 Platform: PC OS/Version: Windows Status: NEW Keywords: accepts-invalid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: z_hossain icmail.net This code should not compiled without any complain. class C { this(int t) {;} this() {;} this() {;} } void main() { new C(0); } --
Mar 01 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2703 gide nwawudu.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|duplicate constructors |Duplicate constructors and | |methods 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 --
Mar 02 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2703 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |DUPLICATE *** This issue has been marked as a duplicate of issue 1003 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 10 2011