digitalmars.D.bugs - [Issue 6533] New: Compiler should catch duplicate overrides
- d-bugmail puremagic.com (35/35) Aug 19 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6533
- d-bugmail puremagic.com (11/11) Oct 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6533
http://d.puremagic.com/issues/show_bug.cgi?id=6533 Summary: Compiler should catch duplicate overrides Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com 19:26:40 PDT --- class Foo { abstract void foo(); } class Bar : Foo { override void foo() { // code } override void foo() { } } void main() {} This ends up being a linker error such as: Offset 00542H Record Type 00C3 Error 1: Previous Definition Different : _D12overridetest3Bar3fooMFZv The problem is in a large class you might end up mistakenly defining an overriden function twice, and you won't get a compile-time error, you will get a linker error instead. Making this a compile-time error would be an improvement. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 19 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6533 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED 14:15:37 PDT --- Fixed in 2.060. Don't know which pull though. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 04 2012