digitalmars.D.bugs - [Issue 5312] New: Function redefinition is allowed (duplicate functions)
- d-bugmail puremagic.com (25/25) Dec 03 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5312
- d-bugmail puremagic.com (12/12) Dec 03 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5312
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 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: -------
Dec 03 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 *** 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: -------
Dec 03 2010