From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17874 invoked by alias); 10 Aug 2004 17:13:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 17861 invoked by uid 48); 10 Aug 2004 17:13:58 -0000 Date: Tue, 10 Aug 2004 17:13:00 -0000 Message-ID: <20040810171358.17857.qmail@sourceware.org> From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20031014002907.12608.carlo@gcc.gnu.org> References: <20031014002907.12608.carlo@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg00839.txt.bz2 List-Id: ------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-10 17:13 ------- The failure I get with gcc 3.4.x can be reduced to =========================== struct A { struct B; }; struct A::B {}; struct A::B {}; =========================== which is tracked in PR 16964. On mainline I get a different failure which can be reduced to =========================== namespace N { int i; int i; } =========================== bug.cc:8: error: redefinition of `int N::i' bug.cc:7: error: `int N::i' previously declared here bug.cc:8: internal compiler error: tree check: expected class 'd', have 'x' (error_mark) in cp_parser_init_declarator, at cp/parser.c:10717 Please submit a full bug report, [etc.] which is also a redefinition problem. I opened a separate PR for this one: PR 16971 I'd like to keep this PR open until all problems got fixed, because it is an excellent testcase for finding all sorts of redefinition problems. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org BugsThisDependsOn| |16964 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608