From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3545 invoked by alias); 3 Sep 2004 18:26:30 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 3538 invoked from network); 3 Sep 2004 18:26:29 -0000 Received: from unknown (HELO develer.com) (151.38.19.110) by sourceware.org with SMTP; 3 Sep 2004 18:26:29 -0000 Received: (qmail 31143 invoked from network); 3 Sep 2004 18:26:26 -0000 Received: from mimas.trilan (HELO mimas) (10.3.3.245) by ns.trilan with SMTP; 3 Sep 2004 18:26:26 -0000 Message-ID: <0ca201c491e3$85d8acf0$f503030a@mimas> From: "Giovanni Bajo" To: "Steven L. Zook" Cc: References: <9E27B4AB55478346B9F7848926E49B7F4F7026@exchange1.qualstar.com> Subject: Re: Nested Class Member Access Date: Fri, 03 Sep 2004 18:26:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg00150.txt.bz2 Steven L. Zook wrote: > Is this behavior on GCC's part (that is, nested classes are members of the > enclosing class and thus have all access rights that other members have) > intentional? Yes. > If so, should it be documented in the "Extensions to the C++ Language" > section of the GCC online documents. Not really, because it is actually part of C++0x, so it is not a real extension in the traditional term. Instead, I would like to define a new language dialect (-std=c++0x) to activate such behavours (that is, implementation of DRs which are in WP status). There have been some talk about it, but no patches yet. Giovanni Bajo