public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* "xxx is a private member" message
@ 1997-10-29 11:56 Paul Koning
  1997-10-29 13:45 ` Joe Buck
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Koning @ 1997-10-29 11:56 UTC (permalink / raw)
  To: egcs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-10-29 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-29 11:56 "xxx is a private member" message Paul Koning
1997-10-29 13:45 ` Joe Buck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).