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


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


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