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: 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]