This is the mail archive of the
gcc-prs@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: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 4 Dec 2001 02:06:02 -0000
- Subject: Re: c++/4987: Internal compiler error in c++ compiler
- Reply-to: rodrigc at gcc dot gnu dot org
The following reply was made to PR c++/4987; it has been noted by GNATS.
From: rodrigc@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
johanb@docs.uu.se, nobody@gcc.gnu.org, rodrigc@gcc.gnu.org
Cc:
Subject: Re: c++/4987: Internal compiler error in c++ compiler
Date: 4 Dec 2001 01:57:42 -0000
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