Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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>
();
}