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: nob...@puremagic.com
        ReportedBy: thelastmamm...@gmail.com


--- Comment #0 from thelastmamm...@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: -------

Reply via email to