https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70667
--- Comment #4 from Andrew Pinski ---
If we had:
```
int i = f<3>(nullptr);
```
clang, edg and MSVC also rejects it for the same reason as GCC.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70667
--- Comment #3 from Andrew Pinski ---
So if we have (note the extra f which has no arguments):
```
template struct A { alignas (N) int a; };
template struct B { char c; };
template int f (int (*)[sizeof (A)]) { return 0; }
template int f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70667
--- Comment #2 from Martin Sebor ---
I'm not sure if that changes the validity of the test case (the invalid
alignment on the member makes the whole class invalid) but the error is the
same with A defined with the alignment specifier rather than
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70667
TC changed:
What|Removed |Added
CC||rs2740 at gmail dot com
--- Comment #1 from TC