This is the mail archive of the gcc-bugs@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++/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


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