This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
"xxx is a private member" message
- To: egcs at cygnus dot com
- Subject: "xxx is a private member" message
- From: Paul Koning <pkoning at xedia dot com>
- Date: Wed, 29 Oct 1997 14:56:03 -0500
egcs gives the following message:
foo.cc: In method `void foo::bar()':
foo.cc:12: member `i' is a private member of class `foo'
foo.cc:13: confused by earlier errors, bailing out
while gcc 2.7.2.1 doesn't complain, for the following program:
class foo
{
int i;
public:
void bar(void);
};
void foo::bar(void)
{
struct
{
int j[i];
} k;
k.j[1] = 0;
}
Is that due to a C++ standard change or is something else going on?
paul