From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6149 invoked by alias); 10 Feb 2003 21:57:45 -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 6120 invoked by uid 48); 10 Feb 2003 21:57:45 -0000 Date: Mon, 10 Feb 2003 21:57:00 -0000 Message-ID: <20030210215745.6119.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, gendzwil@sedsystems.ca, nobody@gcc.gnu.org From: ehrhardt@mathematik.uni-ulm.de Reply-To: ehrhardt@mathematik.uni-ulm.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, gendzwil@sedsystems.ca, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/9649: gcc hangs when static declared twice in templated class X-SW-Source: 2003-02/txt/msg00463.txt.bz2 List-Id: Synopsis: gcc hangs when static declared twice in templated class State-Changed-From-To: open->analyzed State-Changed-By: cae State-Changed-When: Mon Feb 10 21:57:45 2003 State-Changed-Why: Confrimed. All supported versions fail to compile this, 3.2.2 gives an endless loop, 3.3 and 3.4 give an ICE at the same place. Here's a minimal legal example, it is possible to remove the out of class definition of the static member without the ICE going away. ---------------- cut ----------------- template struct A { static int _test; static int _test; }; template int A::_test = 0; struct B : public A { }; ---------------- cut ----------------- 9649.cc: In instantiation of `A': 9649.cc:7: instantiated from here 9649.cc:4: internal compiler error: in finish_member_declaration, at cp/semantics.c:1868 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9649