[Bug libstdc++/14419] Request clarification of ambiguous overload error.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 3 22:31:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-03 22:30 -------
No this is not a bug as the last match:
/Users/pinskia/fsf-clean-nocheck/lib/gcc/powerpc-apple-darwin7.2.0/3.5.0/../../../../include/c++/
3.5.0/bits/basic_string.h:438: note:                 std::basic_string<_CharT, _Traits, _Alloc>& std::
basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char, _Traits = std::
char_traits<char>, _Alloc = std::allocator<char>]

means that it can go through the conversion from bool to char to get able to call that one and the first 
one matches because it can go through "std::string" so it is ambiguous which one should be picked by 
the compiler.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c++                         |libstdc++
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list