Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
access30.C
blob: b03a99af1f0642cc77d297fa3ea2ae3166bcfb99 [
file
] [
log
] [
blame
]
// PR c++/41437
// { dg-do compile }
class
A
{
struct
B
{
B
();
};
};
template
<
typename
T
>
void
f
()
{
A
::
B b
;
}
// { dg-error "private" }
void
g
()
{
f
<int>
();
}
class
X
{
template
<typename>
struct
A
{};
};
X
::
A
<int>
a
;
// { dg-error "private" }