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