Debian Codegraph @

gcc/testsuite/g++.dg/template/pr69961b.C

raw
1 // PR c++/69961
2
3 struct A { A (int); };
4
5 template <typename T>
6 void foo ()
7 {
8 A::A ((T)0); // { dg-error "cannot call constructor .A::A. directly" }
9 }
10
11 void
12 bar ()
13 {
14 foo<int> ();
15 }