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 libstdc++/14419] Request clarification of ambiguous overload error.


------- 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


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