August 20, 2011
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


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-08-19 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: -------
October 04, 2012
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


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-04 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: -------