https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120415

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> clang 19 says
> 
> > clang-19 t.C -S -std=c++20
> t.C:4:11: error: no viable overloaded '-='
>     4 |     __tmp -= __n
>       |     ~~~~~ ^  ~~~
> t.C:4:17: error: expected ';' after expression
>     4 |     __tmp -= __n
>       |                 ^
>       |                 ;
> 
> so this possibly was accepts-invalid before?

Comment 0 is just a tiny piece of libstdc++ code taken out of context, and so
is not valid code, and is nothing to do with the bug.

The error I see for the full CommandLineParser.ii file is this:

src/CommandLineParser.cc:423:27:   required from here
src/utils/view.hh:210:15: error: no match for 'operator-' (operand types are
'const hash_set<std::pair<std::basic_string_view<char>,
std::vector<std::basic_string_view<char> > >, hash_set_impl::ExtractFirst,
XXHasher, std::equal_to<void> >::Iter<const
hash_set<std::pair<std::basic_string_view<char>,
std::vector<std::basic_string_view<char> > >, hash_set_impl::ExtractFirst,
XXHasher, std::equal_to<void> >, const std::pair<std::basic_string_view<char>,
std::vector<std::basic_string_view<char> > > >' and 'const
hash_set<std::pair<std::basic_string_view<char>,
std::vector<std::basic_string_view<char> > >, hash_set_impl::ExtractFirst,
XXHasher, std::equal_to<void> >::Iter<const
hash_set<std::pair<std::basic_string_view<char>,
std::vector<std::basic_string_view<char> > >, hash_set_impl::ExtractFirst,
XXHasher, std::equal_to<void> >, const std::pair<std::basic_string_view<char>,
std::vector<std::basic_string_view<char> > > >')

This is a completely different error coming from the openmsx code.

Reply via email to