This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17208] New: Fails to identify function pointer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]