[Bug libstdc++/13188] New: iostream hides tolower

papadopo at shfj dot cea dot fr gcc-bugzilla@gcc.gnu.org
Tue Nov 25 10:45:00 GMT 2003


Hi,

The attached program compiles just fine when line
#include <iostream>
is commented out.

Uncommenting it results in the following error:

foo.cc:7: error: no matching function for call to `transform(
   __gnu_cxx::__normal_iterator<char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >,
   __gnu_cxx::__normal_iterator<char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >,
   __gnu_cxx::__normal_iterator<char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, <unknown type>)'

Including <iostream> somehow "hides" the type of function std::tolower.

-- 
           Summary: iostream hides tolower
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: papadopo at shfj dot cea dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


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



More information about the Gcc-bugs mailing list