Red Hat Bugzilla – Bug 118794
new_allocator.h buglet (allocator should be std::allocator?)
Last modified: 2007-11-30 17:10:38 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)
Description of problem:
//using namespace std;
g++34 -c Test.cc
In file included from demangle.h:40,
/usr/lib/gcc/i386-redhat-linux/3.4.0/../../../../include/c++/3.4.0/ext/new_allocator.h:80: error: `allocator' has not been declared
/usr/lib/gcc/i386-redhat-linux/3.4.0/../../../../include/c++/3.4.0/ext/new_allocator.h:80: error: expected `,' or `...' before '<' token
I think the problem is in ext/new_allocator.h allocator should be std::allocator. Possible need include to declare this also.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This has been already fixed in CVS on gcc-3_4-branch and will show up
as soon as next gcc34 rpms will be made.
Seems to work for me in libstdc++34-devel-3.4.0-1.