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 01:57:42 -0000
- Subject: Re: c++/4987: Internal compiler error in c++ compiler
Synopsis: Internal compiler error in c++ compiler
State-Changed-From-To: analyzed->closed
State-Changed-By: rodrigc
State-Changed-When: Mon Dec 3 17:57:41 2001
State-Changed-Why:
Your test-case is illegal. std::allocator is a template
class, with no default template arguments.
You need to re-write your test-case so that you give
std::allocator a template argument, for example:
#include <memory>
template <class T>
class my_allocator
: public std::allocator<T>
{
public:
my_allocator() : std::allocator<T>() { }
};
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4987&database=gcc