https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121932
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> 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.
Also removing the const causes the ICE to go away.
