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