This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17879] New: Erroneous ambiguity resolution for parameter declarations
- From: "heinlein at informatik dot uni-ulm dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2004 09:27:56 -0000
- Subject: [Bug c++/17879] New: Erroneous ambiguity resolution for parameter declarations
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
According to the Standard, Sec. 8.2, Par. 7,
f should be of type "void (*) (int (*) (C))",
not "void (*) (int)", as the compiler assumes:
class C {};
void f (int(C)) {}
--
Summary: Erroneous ambiguity resolution for parameter
declarations
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: heinlein at informatik dot uni-ulm dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17879