https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121932
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2025-09-13
Status|UNCONFIRMED |NEW
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced further to:
```
struct s1{
template <long N> void f(int (&)[N]);
};
struct s2{
void f(const s1);
};
void s2::f(const s1) {}
```
If we make s2::f not a member function of s2 but rather a global function GCC
does NOT ICE.