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 libstdc++/29696] New: std::string::reverse_iterator doesn't work at all on Tru64 UNIX


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


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