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

Bug found in STL?


I'm fairly sure this is legal C++ code.  Try compiling this source with gcc-2.95.3 and have a look at the errors.  Is this a bug?
 

#include <list>

namespace foo
{
  typedef void (*destroy) (void* ptr);

  class bar
  {
  public:
    bar();
  };
}

using namespace foo;

list<bar*> lb;
 

Thanks,
Eric.


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