Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
access12.C
blob: a230069c47c6913991e1599a51b439f2c370177b [
file
] [
log
] [
blame
]
// { dg-do assemble }
// PRMS Id: 4694
// Bug: g++ doesn't realize that A::i refers to a member of `this' in B().
class
A
{
protected
:
int
i
;
};
struct
B
:
public
A
{
B
()
{
A
::
i
=
0
;
}
};
struct
C
:
public
B
{
C
()
{
B
::
i
=
0
;
}
};