This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/29696] New: std::string::reverse_iterator doesn't work at all on Tru64 UNIX
- From: "lebedev at zhtw dot org dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2006 14:12:37 -0000
- Subject: [Bug libstdc++/29696] New: std::string::reverse_iterator doesn't work at all on Tru64 UNIX
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
std::copy with reverse_iterator in this example doesn't work correctly on alpha
under Tru64 UNIX 5.1b
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
class trans
{
public:
int operator()(char c) { std::clog << c << std::endl; return c - '0'; };
};
int main()
{
std::string s = "0987654321123123";
std::copy(s.begin(), s.end(), std::ostream_iterator<char>(std::cout, " "));
std::cout << std::endl;
std::copy(s.rbegin(), s.rend(), std::ostream_iterator<char>(std::cout, " "));
std::cout << std::endl;
}
--
Summary: std::string::reverse_iterator doesn't work at all on
Tru64 UNIX
Product: gcc
Version: 3.4.6
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lebedev at zhtw dot org dot ru
GCC build triplet: alphaev56-dec-osf5.1
GCC host triplet: alphaev56-dec-osf5.1
GCC target triplet: alphaev56-dec-osf5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29696