From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2507 invoked by alias); 12 Jul 2002 21:16: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 2471 invoked by uid 71); 12 Jul 2002 21:16:00 -0000 Resent-Date: 12 Jul 2002 21:16:00 -0000 Resent-Message-ID: <20020712211600.2470.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, vincent.lascaux@ifrance.com Received: (qmail 31165 invoked by uid 61); 12 Jul 2002 21:09:59 -0000 Message-Id: <20020712210959.31164.qmail@sources.redhat.com> Date: Fri, 12 Jul 2002 14:16:00 -0000 From: vincent.lascaux@ifrance.com Reply-To: vincent.lascaux@ifrance.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7294: GCC 3.1 problem with templates X-SW-Source: 2002-07/txt/msg00397.txt.bz2 List-Id: >Number: 7294 >Category: c++ >Synopsis: GCC 3.1 problem with templates >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Fri Jul 12 14:15:59 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Vincent Lascaux >Release: gcc version 3.1 >Organization: >Environment: winXP >Description: The following code leads to an "internal error" main.cpp: --------- template class CContainer> struct CFoo { typedef int i; CContainer Foo; }; template struct CTest { template struct value {}; CFoo::i CFooI; }; int main() {} g++ main.cpp main.cpp: In instantiation of `CFoo::value>': main.cpp:11: instantiated from here main.cpp:3: internal error: Segmentation fault >How-To-Repeat: Compile the code >Fix: If you find one, please, tell me :) >Release-Note: >Audit-Trail: >Unformatted: