https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122531
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
EDG shows it like this (although this doesn't include all candidates shown by
gcc trunk, for reasons):
"aka.cc", line 5: error: no operator "=" matches these operands
operand types are: const std::string = const char [5]
a = "oops";
^
"/usr/include/c++/15/bits/basic_string.h", line 1028: note: candidate function
template "std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::operator=(const _Tp &) [with _CharT=char,
_Traits=std::char_traits<char>, _Alloc=std::allocator<char>]" failed
deduction
operator=(const _Tp& __svt)
^
"/usr/include/c++/15/bits/basic_string.h", line 1013: note: function
"std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::operator=(std::initializer_list<_CharT>) [with _CharT=char,
_Traits=std::char_traits<char>, _Alloc=std::allocator<char>]" does
not match because argument #1 does not match parameter
operator=(initializer_list<_CharT> __l)
^
"/usr/include/c++/15/bits/basic_string.h", line 927: note: function
"std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::operator=(_CharT) [with _CharT=char,
_Traits=std::char_traits<char>, _Alloc=std::allocator<char>]" does
not match because argument #1 does not match parameter
operator=(_CharT __c)
^
1 error detected in the compilation of "aka.cc".