https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123809
--- Comment #6 from Jan Schultke <janschultke at googlemail dot com> ---
I don't see how this is in any way related to PR 107522.
A workaround that fixes this bug for me is to replace
template <typename T, typename... Us>
concept one_of = (std::same_as<T, Us> || ...);
with
template <typename T, typename... Us>
concept one_of = (std::is_same_v<T, Us> || ...);
... somewhere in my code base.
My intuition is that what we're seeing here is the same bug as
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123814 and due to memory
corruption, the issue blows up in a seemingly unrelated place. That other bug
causes an ICE starting with GCC 13.