From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22028 invoked by alias); 2 Feb 2005 16:42:20 -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 21987 invoked by uid 48); 2 Feb 2005 16:42:14 -0000 Date: Wed, 02 Feb 2005 16:42:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050202164209.19764.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19764] New: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg00236.txt.bz2 List-Id: The following invalid code snippet causes an ICE in gcc 3.3.x, and 3.4.[34]: ====================================== struct A; template A<>::~A(); ====================================== The error message on the 3.4 branch is: bug.cc:2: error: `A' is not a template bug.cc:2: error: expected id-expression before '~' token bug.cc:2: error: abstract declarator `A' used as declaration bug.cc:2: internal compiler error: tree check: expected class 'd', have 'x' (error_mark) in do_decl_instantiation, at cp/pt.c:10668 Please submit a full bug report, [etc.] We did not ICE in gcc 3.2.x. -- Summary: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19764