summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction46.C
blob: cf38ed65fa883b368c1f32344df014527e9d32a4 (plain)
1
2
3
4
5
6
// PR c++/80449
// { dg-options -std=c++17 }

template<class S> struct C;
template<> struct C<int> { C(int, int) {} };
auto k = C{0, 0};  // { dg-error "cannot deduce" }