c++/4987: Internal compiler error in c++ compiler

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Mon Dec 3 16:50:00 GMT 2001


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



More information about the Gcc-prs mailing list