From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9879 invoked by alias); 14 May 2003 16:59:09 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 9843 invoked by uid 48); 14 May 2003 16:59:08 -0000 Date: Wed, 14 May 2003 16:59:00 -0000 Message-ID: <20030514165908.9842.qmail@sources.redhat.com> To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: ehrhardt@mathematik.uni-ulm.de Reply-To: ehrhardt@mathematik.uni-ulm.de, bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/10722: ICE after "error: expected a type, got `pm::nothing'" X-SW-Source: 2003-05/txt/msg01661.txt.bz2 List-Id: Synopsis: ICE after "error: expected a type, got `pm::nothing'" State-Changed-From-To: open->analyzed State-Changed-By: cae State-Changed-When: Wed May 14 16:59:08 2003 State-Changed-Why: Reduced testcase for 3.3: ============= cut ========== template struct pair {}; template struct pair { typedef T first_type; }; ============= cut ========== ICE is 3.3-only. 3.4 has a different ICE with the original testcase Segfault is in constructor_name_full at cp/decl2.c:1240 because the parameter thing is NULL. Reduced testcase for 3.4 is: ============= cut ========== template struct spec_object_traits {}; template struct pair {}; template struct spec_object_traits< pair > : spec_object_traits { }; ============= cut ========== This is a tree-checking ICE in xref_basetypes at cp/decl.c:12788 where we need an error_mark check. regards Christian http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10722