[Bug c++/123809] Irreproducible ICE on Ubuntu/WSL G++-14
janschultke at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jan 25 08:06:54 GMT 2026
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.
More information about the Gcc-bugs
mailing list