PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction43.C
blob120145516b1fd94031594bda6e35f7730bf0f5f7
1 // PR c++/79790
2 // { dg-options -std=c++17 }
4 template <int N>
5 struct array
7   int a [N];
8 };
10 array a = { 1, 2, 3 };  // { dg-error "cannot deduce" }