Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr69961b.C
blob: 5fff1c90837381647908cf4ae53de021136b8093 [
file
] [
log
] [
blame
]
// 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>
();
}