From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5099 invoked by alias); 11 Feb 2002 17:16: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 5016 invoked by uid 71); 11 Feb 2002 17:16:03 -0000 Resent-Date: 11 Feb 2002 17:16:03 -0000 Resent-Message-ID: <20020211171603.5015.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org 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 30765 invoked by uid 61); 11 Feb 2002 17:12:16 -0000 Message-Id:<20020211171216.30764.qmail@sources.redhat.com> Date: Mon, 11 Feb 2002 09:16: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++/5657: ICE in template with parameter of undedefined type X-SW-Source: 2002-02/txt/msg00253.txt.bz2 List-Id: >Number: 5657 >Category: c++ >Synopsis: ICE in template with parameter of undedefined type >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Mon Feb 11 09:16:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Volker Reichelt >Release: gcc version 3.1 20020204 (experimental) >Organization: >Environment: i686-pc-linux-gnu >Description: The following two lines of code cause an ICE (note that the code is illegal, since B hasn't been defined): template struct A { A(B); }; template A::A(B) {} The error message is: bug.cpp:1: parse error before `)' token bug.cpp:2: parse error before `)' token bug.cpp:2: Internal compiler error in poplevel, at cp/decl.c:1288 Please submit a full bug report, [etc.] >How-To-Repeat: g++ -c bug.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted: