This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13581] New: missing operator != for const_reverse_iterator


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
$

-- 
           Summary: missing operator != for const_reverse_iterator
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: papadopo at shfj dot cea dot fr
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]