aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction43.C
blob: 120145516b1fd94031594bda6e35f7730bf0f5f7 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/79790
// { dg-options -std=c++17 }

template <int N>
struct array
{
  int a [N];
};

array a = { 1, 2, 3 };  // { dg-error "cannot deduce" }