From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10574 invoked by alias); 28 Jan 2003 14:01:22 -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 10554 invoked by uid 48); 28 Jan 2003 14:01:22 -0000 Date: Tue, 28 Jan 2003 14:01:00 -0000 Message-ID: <20030128140122.10553.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, t-gcc@snowelm.com From: ehrhardt@mathematik.uni-ulm.de Reply-To: ehrhardt@mathematik.uni-ulm.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, t-gcc@snowelm.com, gcc-gnats@gcc.gnu.org Subject: Re: c++/9474: [3.2/3.3/3.4 regression] GCC freezes in compiling a weird code mixing and X-SW-Source: 2003-01/txt/msg01584.txt.bz2 List-Id: Old Synopsis: GCC freezes in compiling a weird code mixing and New Synopsis: [3.2/3.3/3.4 regression] GCC freezes in compiling a weird code mixing and State-Changed-From-To: open->analyzed State-Changed-By: cae State-Changed-When: Tue Jan 28 14:01:22 2003 State-Changed-Why: Confirmed. Here's a reduced testcase, probably illegal but I'm not 100% sure. This is actually an infinite loop in gcc, not an ICE but I'll leave this in ICE on illegal for the moment. ---------- cut ---------- namespace X { typedef struct { } x; }; typedef X::x x; using X::x; ---------- cut ---------- This is a regression from 2.95 which issued this error: t.cc:6: using directive `x' introduced ambiguous type `X::x' The loop is in the function original_type in gcc/cp/typeck.c because the decl for ::x references itself in DECL_ORIGINAL_TYPE (TYPE_NAME (x)). regards Christian http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9474