From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22997 invoked by alias); 17 Jan 2002 09:42:51 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 22964 invoked from network); 17 Jan 2002 09:42:51 -0000 Received: from unknown (HELO anchor-post-33.mail.demon.net) (194.217.242.91) by sources.redhat.com with SMTP; 17 Jan 2002 09:42:51 -0000 Received: from mailgate.softwire.co.uk ([62.49.203.138] helo=polarbear) by anchor-post-33.mail.demon.net with esmtp (Exim 2.12 #1) id 16R94L-000AXt-0X; Thu, 17 Jan 2002 09:42:50 +0000 From: "Rupert Wood" To: "'Kevin Hise'" Cc: Subject: RE: 'identifier' is private within this context Date: Thu, 17 Jan 2002 01:42:00 -0000 Message-ID: <616BE6A276E3714788D2AC35C40CD18D03A9F1@whale.softwire.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <616BE6A276E3714788D2AC35C40CD18D30F74A@whale.softwire.co.uk> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-SW-Source: 2002-01/txt/msg00174.txt.bz2 Kevin Hise wrote: > I'm attempting to access a static variable from a static method, > both members of the same class, both declared 'private', but > declaring the variable and the method anything other than 'public' > will cause g++ to barf a message saying the variable, function, or > whatever is private / protected "within this context", like so: Could you post some failing code? (Or, better still, a heavily simplified version which still fails.) A trivial case constructed from your description works OK and I can't see any obvious bugs in the relevant bits of the C++ parser. Which version of g++? Rup.