From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12754 invoked by alias); 2 Aug 2005 02:39:06 -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 12740 invoked by uid 48); 2 Aug 2005 02:39:02 -0000 Date: Tue, 02 Aug 2005 02:39:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050802023901.23191.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg00132.txt.bz2 List-Id: The following code snippet causes an ICE on the 4.0 branch and mainline: ================================ template struct A { void foo() throw(int[N]); }; A<0> a; ================================ bug.cc: In instantiation of 'A<0>': bug.cc:6: instantiated from here bug.cc:3: error: creating array with size zero ('0') bug.cc:3: internal compiler error: tree check: expected tree_list, have error_mark in comp_except_specs, at cp/typeck.c:835 Please submit a full bug report, [etc.] -- Summary: [4.0/4.1 Regression] ICE on invalid throw in template Product: gcc Version: 4.1.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=23191