This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7229: Internal compiler error in g++


The following reply was made to PR c++/7229; it has been noted by GNATS.

From: Reichelt <reichelt@igpm.rwth-aachen.de>
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<typename functorT>
     datastream(typename boost::type_traits<functorT>::add_reference fun)
 
 IMHO it should read as follows:
 
     template<typename functorT>
     datastream(typename boost::add_reference<functorT> 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
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]