July 07, 2011 [Issue 6263] New: Ambiguous declaration using typeof and an overloaded function is accepted. | ||||
---|---|---|---|---|
| ||||
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: nobody@puremagic.com ReportedBy: blood.of.life@gmail.com --- Comment #0 from Bernard Helyer <blood.of.life@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: ------- |
November 15, 2012 [Issue 6263] Ambiguous declaration using typeof and an overloaded function is accepted. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | http://d.puremagic.com/issues/show_bug.cgi?id=6263 Denis Shelomovskij <verylonglogin.reg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|NEW |RESOLVED CC| |verylonglogin.reg@gmail.com Resolution| |DUPLICATE --- Comment #1 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2012-11-15 11:27:45 MSK --- 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 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation