This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4987: Internal compiler error in c++ compiler
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, johanb at docs dot uu dot se, nobody at gcc dot gnu dot org, rodrigc at gcc dot gnu dot org
- Date: 4 Dec 2001 00:50:28 -0000
- Subject: Re: c++/4987: Internal compiler error in c++ compiler
Synopsis: Internal compiler error in c++ compiler
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Mon Dec 3 16:50:27 2001
State-Changed-Why:
With gcc 3.0.3 20011201, configured with --enable-checking,
I get the ICE on your code:
foo.cc: In constructor `my_allocator<T>::my_allocator()':
foo.cc:8: Tree check: expected identifier_node, have template_decl in
expand_member_init, at cp/init.c:1165
With gcc version 3.1 20011201 (experimental), the compiler
does not ICE, and I get this compilation error:
foo.cc: In constructor `my_allocator<T>::my_allocator()':
foo.cc:8: class `my_allocator<T>' does not have any field named `template<class
_Alloc> class std::allocator'
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4987&database=gcc