From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8421 invoked by alias); 17 Aug 2004 21:11:56 -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 8400 invoked by uid 48); 17 Aug 2004 21:11:55 -0000 Date: Tue, 17 Aug 2004 21:11:00 -0000 Message-ID: <20040817211155.8399.qmail@sourceware.org> From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040817192847.17068.v.haisman@sh.cvut.cz> References: <20040817192847.17068.v.haisman@sh.cvut.cz> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17068] [3.4/3.5 regression] ICE: tree check: expected class 'd', have 'x' (identifier_node) in dependent_template_p, at cp/pt.c:12043 X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg01722.txt.bz2 List-Id: ------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-17 21:11 ------- > ------- Additional Comments From bangerth at dealii dot org 2004-08-17 20:15 ------- > Well done, Volker: this intriguing anagramatic sequence in your testcase > ()<0>() > clearly asks for an award for "art in testcases" :-) Well, I couldn't help it - I had to find a really symmetric testcase. :-) And here it is (it's a modified version from PR 16971). You can read it forwards and backwards (well, you have to revert the braces): ============================================= namespace { ; int tni ; int tni ; } ecapseman ============================================= The error message mainline used to give was: :1:C.C:1: error: redefinition of `int ::tni' :1:C.C:1: error: `int ::tni' previously declared here :1:C.C:1: 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.] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17068