public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Paul Koning <pkoning@xedia.com>
To: egcs@cygnus.com
Subject: "xxx is a private member" message
Date: Wed, 29 Oct 1997 11:56:00 -0000	[thread overview]
Message-ID: <9710291956.AA16543@kona.> (raw)

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

             reply	other threads:[~1997-10-29 11:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-29 11:56 Paul Koning [this message]
1997-10-29 13:45 ` Joe Buck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9710291956.AA16543@kona. \
    --to=pkoning@xedia.com \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).