This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17208] New: Fails to identify function pointer
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2004 07:46:59 -0000
- Subject: [Bug c++/17208] New: Fails to identify function pointer
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The test case (sorry - simple cases seem to work) fails to identify operator% when the argument is a function pointer:
template<typename T>
head& operator%(head& d, T& (*pf)(T&)) {
However, a non-template operator/, called with the same arguments, compiles OK:
head& operator/(head& d, display& (*pf)(display&)) {
It seems that the operator% call should bind "T" to "display" but does not.
Ivan
--
Summary: Fails to identify function pointer
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17208