[Bug c++/23273] gcc doesn't compile the stl headers

2005-08-22 Thread gcc-bugzilla2 at imperialviolet dot org

--- Additional Comments From gcc-bugzilla2 at imperialviolet dot org  
2005-08-22 12:11 ---
I have the same problem when building Gambit (a Scheme->C compiler). Since the
original reporter doesn't seem to have replied to the request for a -save-temps
file I thought that mine could be of use.

It's tarballed at http://www.imperialviolet.org/binary/gcc-bug-23273.tar.bz2

please email agl at imperialviolet.org with any questions.

Cheers,

% gcc --version
   
 T ~/src/gambc40b14/lib/guide
gcc (GCC) 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)

g++ -c -pipe -Wall -W -march=pentium2 -O2 -pipe  -DQT_NO_DEBUG
-I/usr/qt/3/mkspecs/linux-g++ -I. -I../../include -I/usr/qt/3/include -o
guideuihighlighterscheme.o guideuihighlighterscheme.cpp -save-temps
g++: warning: -pipe ignored because -save-temps specified
In file included from 
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/vector:72,
 from /usr/qt/3/include/qvaluevector.h:46,
 from guideuihighlighterscheme.h:10,
 from guideuihighlighterscheme.cpp:8:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_bvector.h: In
member function `void std::vector::_M_insert_range(std::_Bit_iterator, _ForwardIterator, _ForwardIterator,
std::forward_iterator_tag)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_bvector.h:522:
error: expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_bvector.h: In
member function `void std::vector::_M_fill_insert(std::_Bit_iterator, size_t, bool)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_bvector.h:823:
error: expected unqualified-id before '(' token
In file included from 
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/vector:75,
 from /usr/qt/3/include/qvaluevector.h:46,
 from guideuihighlighterscheme.h:10,
 from guideuihighlighterscheme.cpp:8:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/vector.tcc: In member
function `void std::vector<_Tp,
_Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator >, size_t, const _Tp&)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/vector.tcc:307: error:
expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/vector.tcc: In member
function `void std::vector<_Tp,
_Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator >, _ForwardIterator, _ForwardIterator,
std::forward_iterator_tag)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/vector.tcc:384: error:
expected unqualified-id before '(' token


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


[Bug c++/23273] gcc doesn't compile the stl headers

2005-08-22 Thread gcc-bugzilla2 at imperialviolet dot org

--- Additional Comments From gcc-bugzilla2 at imperialviolet dot org  
2005-08-22 13:00 ---
An uncomfortable, but functional, solution this this problem is to replace
std::max with max on each of the erroring lines. Since the STL lives in the std
namespace anyway I think this should work generally.

AGL

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273