www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10590] New: multiple definitions incorrectly allowed

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10590

           Summary: multiple definitions incorrectly allowed
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com


--- Comment #0 from thelastmammoth gmail.com 2013-07-09 20:01:06 PDT ---
----main.d:
int fun() {return 1;}
int fun() {return 2;}
void main(){}
----
dmd -run main.d
this compiles, but shouldn't
(compile error only occurs when referring to fun)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 09 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10590


Maxim Fomin <maxim maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim maxim-fomin.ru


--- Comment #1 from Maxim Fomin <maxim maxim-fomin.ru> 2013-07-09 21:49:40 PDT
---
I am sure this is a dup of some issue but cannot find it right now.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 09 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10590



--- Comment #2 from thelastmammoth gmail.com 2013-07-10 09:21:02 PDT ---
Are you sure? I couldn't find a similar issue (if anything the title should
contain "multiple definitions").
Seems like an obvious bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 10 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10590


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |DUPLICATE


--- Comment #3 from yebblies <yebblies gmail.com> 2013-08-21 00:53:14 EST ---
Reaaaaaaaaly old bug.

Was originally bug 895.

*** This issue has been marked as a duplicate of issue 2789 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2013