From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8708 invoked by alias); 15 Jul 2002 09:36: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 8669 invoked by uid 71); 15 Jul 2002 09:36:05 -0000 Date: Mon, 15 Jul 2002 02:36:00 -0000 Message-ID: <20020715093605.8665.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Reichelt Subject: Re: c++/7229: Internal compiler error in g++ Reply-To: Reichelt X-SW-Source: 2002-07/txt/msg00457.txt.bz2 List-Id: The following reply was made to PR c++/7229; it has been noted by GNATS. From: Reichelt To: simons@cryp.to, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/7229: Internal compiler error in g++ Date: Mon, 15 Jul 2002 12:08:56 +0200 Hi, the bug is in fact an ice-on-illegal-code, since the template constructor of the class "datastream" is ill-formed ("type_traits" is a namespace and not a template class!!!): template datastream(typename boost::type_traits::add_reference fun) IMHO it should read as follows: template datastream(typename boost::add_reference fun) The following code snippet reproduces the ICE on gcc 2.95.x, 3.0.x, 3.1 and the main trunk as of 20020702 (checked on i686-pc-linux-gnu): ------------------------snip here------------------------- namespace A { namespace B { typedef int type; } } typename A::B<0>::type x; ------------------------snip here------------------------- With gcc 3.1 I get the following error: bug.cc:2: Internal compiler error in make_typename_type, at cp/decl.c:5715 Please submit a full bug report, [etc.] Greetings, Volker Reichelt http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7229