Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
access32.C
blob: 08faa9f0f974381c5551a1d07b0fbb4b9e03bd62 [
file
] [
log
] [
blame
]
// PR c++/98515
// { dg-do compile }
struct
A
{
protected
:
int
var0
;
};
template
<class>
struct
B
:
public
A
{
};
template
<
class
T
>
struct
C
:
public
B
<
T
>
{
void
g
();
};
template
<
class
T
>
void
C
<
T
>::
g
()
{
A
::
var0
++;
}
template
class
C
<int>
;