Hi, Please compile the attached source. Compilation will fail on both Solaris 8: $ g++ --version g++ (GCC) 3.3.2 [...] $ g++ -c foo.cc foo.cc: In function `int main()': foo.cc:8: error: no match for 'operator!=' in 'i != std::vector<_Tp, _Alloc>::rbegin() [with _Tp = int, _Alloc = std::allocator<int>]()' $ and Red Hat Linux 9: $ g++ --version g++ (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) [...] $ g++ -c foo.cc foo.cc: In function `int main()': foo.cc:8: no match for ` std::reverse_iterator<__gnu_cxx::__normal_iterator<const int*, std::vector<int, std::allocator<int> > > >& != std::reverse_iterator<__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > > >' operator $
Created attachment 5417 [details] testcase for reproducing the problem
Confirmed on the mainline, it looks like this is a c++ front-end problem.
*** This bug has been marked as a duplicate of 11729 ***