c++/4987: Internal compiler error in c++ compiler

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Mon Dec 3 17:57:00 GMT 2001


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



More information about the Gcc-bugs mailing list