FAIL: tr1/6_containers/tuple/comparison_operators/comparisons.cc (test for excess errors) Excess errors: /Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:77: error: expected `>' before numeric constant /Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: error: '_Tp1' was not declared in this scope /Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: error: '_Tp2' was not declared in this scope /Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: error: template argument 1 is invalid /Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: error: template argument 2 is invalid /Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: error: template argument 2 is invalid /Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: error: expected initializer before '&' token
The problem is the use of _I in: template<int _I, class _Tp1, class _Tp2> typename tuple_element<_I, std::pair<_Tp1, _Tp2> >::type&
Thanks Andrew, I will commit the obvious fix (_I -> _Int).
Subject: Bug 18690 CVSROOT: /cvs/gcc Module name: gcc Changes by: paolo@gcc.gnu.org 2004-11-27 20:25:11 Modified files: libstdc++-v3 : ChangeLog libstdc++-v3/include/tr1: utility Log message: 2004-11-27 Paolo Carlini <pcarlini@suse.de> PR libstdc++/18690 * include/tr1/utility (get(pair), get(const pair)): Change occurrences of _I to _Int. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2789&r2=1.2790 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/tr1/utility.diff?cvsroot=gcc&r1=1.1&r2=1.2
Fixed.