This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/14419] Request clarification of ambiguous overload error.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2004 22:31:00 -0000
- Subject: [Bug libstdc++/14419] Request clarification of ambiguous overload error.
- References: <20040303215240.14419.alriddoch@zepler.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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