[Bug c++/125729] [C++26 Reflection] ICE in symtab_node::verify_symtab_nodes due to unresolved alias tokens breaking COMDAT group optimization structures.

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 10 20:58:18 GMT 2026


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
A similar test that ICEs the same:

```
template <decltype(^^void) type>
struct Error
{
    Error() {}
};

consteval decltype(^^void)
fn1 ()
{
  using Type = int; return ^^Type;
}

consteval decltype(^^void)
fn2 ()
{
  using Type = int; return ^^Type;
}

Error<fn1()> c{};
Error<fn2()> d{};
```


More information about the Gcc-bugs mailing list