From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14989 invoked by alias); 17 Dec 2007 15:03:11 -0000 Received: (qmail 14536 invoked by uid 48); 17 Dec 2007 15:02:58 -0000 Date: Mon, 17 Dec 2007 15:03:00 -0000 Message-ID: <20071217150258.14535.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/28513] [4.0/4.1/4.2/4.3 Regression] QOI: Diagnostic missing since 3.3.x when naming rule is violated In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg01621.txt.bz2 ------- Comment #5 from manu at gcc dot gnu dot org 2007-12-17 15:02 ------- (In reply to comment #2) > I guess this warning was never implemented in the new parser. > It is a pedwarn in class.c (note_name_declared_in_class). The following invokes it: class foo { public: typedef int bar; }; class baz { public: foo foo; }; The difference is that in cp_parser_simple_type_specifier 'foo::bar' does not invoke maybe_note_name_used_in_class, while just 'foo' does. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28513