[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug? Local class always public...
From: |
Ivan Godard |
Subject: |
Bug? Local class always public... |
Date: |
Sat, 10 Feb 2001 15:03:49 -0800 |
The following code compiles under:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
when it should complain that foo:lc is not in scope in the declaration of v1:
class foo {
private:
class lc {
public:
int i;
};
int k;
public:
int j;
};
int main() {
foo v;
foo::lc v1;
int x = v1.i;
return 0;
}
Ivan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug? Local class always public...,
Ivan Godard <=