Bug found in STL?

Eric Lemings eric.b.lemings@lmco.com
Tue May 22 16:30:00 GMT 2001


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.



More information about the Libstdc++ mailing list