From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21457 invoked by alias); 4 Apr 2003 15:06:00 -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 21437 invoked by uid 71); 4 Apr 2003 15:06:00 -0000 Resent-Date: 4 Apr 2003 15:06:00 -0000 Resent-Message-ID: <20030404150600.21436.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, reichelt@igpm.rwth-aachen.de Received: (qmail 14021 invoked by uid 48); 4 Apr 2003 14:57:09 -0000 Message-Id: <20030404145709.14020.qmail@sources.redhat.com> Date: Fri, 04 Apr 2003 15:06:00 -0000 From: reichelt@igpm.rwth-aachen.de Reply-To: reichelt@igpm.rwth-aachen.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10310: [3.4 regression] [parser] ICE on illegal use of template keyword X-SW-Source: 2003-04/txt/msg00142.txt.bz2 List-Id: >Number: 10310 >Category: c++ >Synopsis: [3.4 regression] [parser] ICE on illegal use of template keyword >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Fri Apr 04 15:06:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Volker Reichelt >Release: gcc 3.4 20030402 >Organization: >Environment: i686-pc-linux-gnu >Description: Compiling the following line of code with mainline g++ I get an ICE ---------------------snip here----------------- template void operator<<(int, foo); ---------------------snip here----------------- bug.cpp:1: error: declaration of `operator<<' as non-function bug.cpp:1: internal compiler error: tree check: expected class 'd', have 't' ( void_type) in do_decl_instantiation, at cp/pt.c:10324 Please submit a full bug report, [etc.] So it's actually an error recovery problem, but nevertheless a regression, since I don't get the ICE with the 3.2 or 3.3 branch. (BTW, all compilers were configured with --enable-checking) >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: