Bug 13581 - missing operator != for const_reverse_iterator
Summary: missing operator != for const_reverse_iterator
Status: RESOLVED DUPLICATE of bug 11729
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 3.3.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2004-01-06 08:17 UTC by papadopo
Modified: 2004-01-06 10:12 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-01-06 09:06:31


Attachments
testcase for reproducing the problem (123 bytes, text/plain)
2004-01-06 08:18 UTC, papadopo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description papadopo 2004-01-06 08:17:52 UTC
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
$
Comment 1 papadopo 2004-01-06 08:18:51 UTC
Created attachment 5417 [details]
testcase for reproducing the problem
Comment 2 Andrew Pinski 2004-01-06 09:06:30 UTC
Confirmed on the mainline, it looks like this is a c++ front-end problem.
Comment 3 Paolo Carlini 2004-01-06 10:12:09 UTC

*** This bug has been marked as a duplicate of 11729 ***