template <int N>
struct A { int f1[N]; };
int main() {
A a1{ {1} }; // compiles fine
A a2{ .f1 = {1} }; // error: no viable constructor or deduction guide for deduction of template arguments of 'T'
}
MSVC errors here too, GCC works.
Compiler Explorer