#include <iostream>
#include <cctype>

template<typename T>
void test(T t)
{
        char c;
        t(c);
};

int main()
{
    test(std::toupper);
}

The g++ compiler(version higher than 4.0) complained that no matching function
for call to 'test(<unresolved overloaded function type>)', and got the same
result with all of the functions list in cctype.


-- 
           Summary: Conflicts between <iostream> and <cctype>: unresolved
                    overloaded function type
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zhouzhenghui at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28401

Reply via email to