Bug 6263 – Ambiguous declaration using typeof and an overloaded function is accepted.

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-07-07T00:08:00Z
Last change time
2012-11-15T00:27:45Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
b.helyer

Comments

Comment #0 by b.helyer — 2011-07-07T00:08:54Z
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.
Comment #1 by verylonglogin.reg — 2012-11-15T00:27:45Z
Mark this one as a duplicate because Issue 7549 has better title and discussion. *** This issue has been marked as a duplicate of issue 7549 ***