http://d.puremagic.com/issues/show_bug.cgi?id=6263

           Summary: Ambiguous declaration using typeof and an overloaded
                    function is accepted.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: blood.of.l...@gmail.com


--- Comment #0 from Bernard Helyer <blood.of.l...@gmail.com> 2011-07-07 
00:08:54 PDT ---
int add(int a, int b) { return a + b; }
int add(int a, int b, int c) { return a + b + c; }

void main()
{
    typeof(&add) a;
}

---

I believe the above should error just like

---
auto a = &add;
---

Does.

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

Reply via email to