From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3298 invoked by alias); 14 Apr 2003 11:56: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 3278 invoked by uid 71); 14 Apr 2003 11:56:00 -0000 Resent-Date: 14 Apr 2003 11:56:00 -0000 Resent-Message-ID: <20030414115600.3277.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, "Giovanni Bajo" Resent-Reply-To: gcc-gnats@gcc.gnu.org, Christian Ehrhardt Received: (qmail 30748 invoked by uid 48); 14 Apr 2003 11:51:12 -0000 Message-Id: <20030414115112.30747.qmail@sources.redhat.com> Date: Mon, 14 Apr 2003 11:56:00 -0000 From: Christian Ehrhardt Reply-To: Christian Ehrhardt To: gcc-gnats@gcc.gnu.org Cc: "Giovanni Bajo" X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: "Giovanni Bajo" Subject: c++/10398: [3.4 regression] ICE with missing typename keyword X-SW-Source: 2003-04/txt/msg00604.txt.bz2 List-Id: >Number: 10398 >Category: c++ >Synopsis: [3.4 regression] ICE with missing typename keyword >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Mon Apr 14 11:56:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Christian Ehrhardt >Release: gcc-3.4 >Organization: >Environment: SunOS theseus 5.9 Generic_112233-03 sun4u sparc SUNW,Ultra-4 >Description: This is what remains from PR 10394 after Giovanni's analysis. I'll close 10394 once this has a PR number. The following piece of code gives an ICE with 3.4. template struct A { template class B {}; }; template struct C { C() { A::template B k; } }; struct E { typedef int X; }; template struct C; int main() {} theseus$ ~/gcc-3.4-cvs/build/gcc/cc1plus 10394.cc -quiet 10394.cc: In constructor `C::C()': 10394.cc:13: error: expected `;' 10394.cc: In constructor `C::C() [with V = E]': 10394.cc:22: instantiated from here 10394.cc:13: internal compiler error: in resolve_offset_ref, at cp/init.c:1841 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. regards Christian >How-To-Repeat: . >Fix: Add typename before the definition of k. >Release-Note: >Audit-Trail: >Unformatted: