[Bug c++/123550] [16 Regression] ICE in maybe_push_to_top_level, at cp/name-lookup.cc:8983
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 12 18:14:04 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123550
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-invalid-code, |ice-on-valid-code,
|ice-on-invalid-fuzzy |rejects-valid
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Valid code:
```
template <auto = [] {
struct LocalType {
auto operator<=>(const LocalType &other) const = default;
};
constexpr LocalType a, b;
static_assert(noexcept(a <=> b), "");
}> struct s1{};
```
More information about the Gcc-bugs
mailing list