From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30289 invoked by alias); 4 Oct 2002 19:56:01 -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 30273 invoked by uid 71); 4 Oct 2002 19:56:01 -0000 Date: Fri, 04 Oct 2002 12:56:00 -0000 Message-ID: <20021004195601.30272.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Reichelt Subject: Re: c++/8061: ICE Reply-To: Reichelt X-SW-Source: 2002-10/txt/msg00167.txt.bz2 List-Id: The following reply was made to PR c++/8061; it has been noted by GNATS. From: Reichelt To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, dave@boost-consulting.com Cc: Subject: Re: c++/8061: ICE Date: Fri, 4 Oct 2002 22:36:03 +0200 Hi, the bug can be reproduced with the following legal code snippet: -------------------------------snip here------------------------ struct A { template struct B {}; }; template struct C { typedef A::template B Type; }; -------------------------------snip here------------------------ Compiling this with gcc 2.95.x, 3.0.x, 3.1, 3.2 (just use g++ -c) and the main trunk will result in an ICE (checked on i686-pc-linux-gnu and mips-sgi-irix6.5). The example can be further reduced to following code snippet which is illegal code, however: -------------------------------snip here------------------------ struct A { template struct B {}; }; typedef A::template B Type; -------------------------------snip here------------------------ Greetings, Volker Reichelt http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8061