From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18344 invoked by alias); 10 Dec 2002 23:16:02 -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 18315 invoked by uid 71); 10 Dec 2002 23:16:01 -0000 Resent-Date: 10 Dec 2002 23:16:01 -0000 Resent-Message-ID: <20021210231601.18314.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, bangerth@ticam.utexas.edu Received: (qmail 16481 invoked by uid 61); 10 Dec 2002 23:09:27 -0000 Message-Id: <20021210230927.16480.qmail@sources.redhat.com> Date: Tue, 10 Dec 2002 15:16:00 -0000 From: bangerth@ticam.utexas.edu Reply-To: bangerth@ticam.utexas.edu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8895: ICE on invalid template default value specification X-SW-Source: 2002-12/txt/msg00599.txt.bz2 List-Id: >Number: 8895 >Category: c++ >Synopsis: ICE on invalid template default value specification >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Tue Dec 10 15:16:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Wolfgang Bangerth >Release: unknown-1.0 >Organization: >Environment: >Description: This (illegal) code ------------------- template > struct B { B(int); B(const B&); }; ------------------- makes present 3.3 crash: tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c y.cc y.cc:1: error: parse error before `<' token y.cc:4: error: `Y' was not declared in this scope y.cc:4: error: parse error before `&' token y.cc:4: error: ISO C++ forbids declaration of `B' with no type y.cc:4: internal compiler error: Speicherzugriffsfehler Please submit a full bug report, with preprocessed source if appropriate. See for instructions. gcc2.95 fares a little better: tmp/g> c++ -c y.cc y.cc:1: parse error before `<' y.cc:4: `Y' was not declared in this scope y.cc:4: parse error before `&' y.cc:4: ANSI C++ forbids declaration `B' with no type y.cc:4: confused by earlier errors, bailing out I don't know whether this is significant enough to warrant it marking as a regression. Others might decide this. Regards Wolfgang >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: