From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12344 invoked by alias); 4 Dec 2002 12:46:07 -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 12329 invoked by uid 71); 4 Dec 2002 12:46:06 -0000 Date: Wed, 04 Dec 2002 04:46:00 -0000 Message-ID: <20021204124606.12328.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Volker Reichelt Subject: Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as template parameter Reply-To: Volker Reichelt X-SW-Source: 2002-12/txt/msg00191.txt.bz2 List-Id: The following reply was made to PR c++/4526; it has been noted by GNATS. From: Volker Reichelt To: gcc-gnats@gcc.gnu.org, grey.havens@earthling.net, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as template parameter Date: Wed, 4 Dec 2002 14:38:36 +0100 Hi, here's a little cleaned-up testcase that should compile without error (it actually compiles, if you replace "typeof(x)" by "X"): -----------------------------------snip here------------------------- struct X { typedef int type; }; X x; template struct A { typedef typename T::type type; }; template struct B { A::type y; }; template class B; -----------------------------------snip here------------------------- Regards, Volker http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4526