December 03, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5312

           Summary: Function redefinition is allowed (duplicate functions)
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bdom.pub+deebugz@gmail.com


--- Comment #0 from Bruno Medeiros <bdom.pub+deebugz@gmail.com> 2010-12-03 06:32:16 PST ---
The following compiles fine in terms of semantic analysis:

bool foo() { return false; }
bool foo() { return false; }

class X {

    bool foo() { return false; }
    bool foo() { return false; }

}


Rather we get two "Previous Definition Different" linker errors. But surely this should be a compiler error, right? (at the semantic level)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 04, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5312


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |smjg@iname.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Stewart Gordon <smjg@iname.com> 2010-12-03 17:37:29 PST ---
*** 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: -------