https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117882
Bug ID: 117882
Summary: SFINAE not respected for array parameters
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
I think this should compile:
```
//constexpr
int i = 0;
template<int I>
void f (int(*)[i + I]) = delete;
template<int>
void f (...) { }
void
g ()
{
f<0>(nullptr);
}
```
but we emit:
bug.C:5:6: error: variable or field ‘f’ declared void
5 | void f (int(*)[i + I]) = delete;
| ^
bug.C:5:9: error: expected primary-expression before ‘int’
5 | void f (int(*)[i + I]) = delete;
| ^~~