public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/58357] New: In C++11 std::rotate(first, middle, last) now should return a forward iterator to  first + (last - middle).
@ 2013-09-07 23:32 mhcox at bluezoosoftware dot com
  2013-10-07 23:25 ` [Bug libstdc++/58357] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mhcox at bluezoosoftware dot com @ 2013-09-07 23:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58357
           Summary: In C++11 std::rotate(first, middle, last) now should
                    return a forward iterator to  first + (last - middle).
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mhcox at bluezoosoftware dot com

According to section 25.3.11, the rotate(first, middle, last) algorithm should
return a forward iterator that points to (first + (last - middle)).

Compiled with -std=c++11.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/58357] In C++11 std::rotate(first, middle, last) now should return a forward iterator to  first + (last - middle).
  2013-09-07 23:32 [Bug libstdc++/58357] New: In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle) mhcox at bluezoosoftware dot com
@ 2013-10-07 23:25 ` redi at gcc dot gnu.org
  2014-09-17 13:33 ` redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2013-10-07 23:25 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-10-07
     Ever confirmed|0                           |1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/58357] In C++11 std::rotate(first, middle, last) now should return a forward iterator to  first + (last - middle).
  2013-09-07 23:32 [Bug libstdc++/58357] New: In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle) mhcox at bluezoosoftware dot com
  2013-10-07 23:25 ` [Bug libstdc++/58357] " redi at gcc dot gnu.org
@ 2014-09-17 13:33 ` redi at gcc dot gnu.org
  2015-01-17  3:16 ` redi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2014-09-17 13:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58357

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/58357] In C++11 std::rotate(first, middle, last) now should return a forward iterator to  first + (last - middle).
  2013-09-07 23:32 [Bug libstdc++/58357] New: In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle) mhcox at bluezoosoftware dot com
  2013-10-07 23:25 ` [Bug libstdc++/58357] " redi at gcc dot gnu.org
  2014-09-17 13:33 ` redi at gcc dot gnu.org
@ 2015-01-17  3:16 ` redi at gcc dot gnu.org
  2015-01-17  3:17 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-01-17  3:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58357

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Jan 17 03:15:52 2015
New Revision: 219793

URL: https://gcc.gnu.org/viewcvs?rev=219793&root=gcc&view=rev
Log:
    DR 488
    PR libstdc++/58357
    * include/bits/algorithmfwd.h (rotate): Return an iterator.
    * include/bits/stl_algo.h (rotate, __rotate): Likewise.
    * testsuite/25_algorithms/rotate/dr488.cc: New.
    * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
    * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
    2.cc: Likewise.
    * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
    pod.cc: Likewise.

Added:
    trunk/libstdc++-v3/testsuite/25_algorithms/rotate/dr488.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/algorithmfwd.h
    trunk/libstdc++-v3/include/bits/stl_algo.h
    trunk/libstdc++-v3/testsuite/25_algorithms/rotate/check_type.cc
   
trunk/libstdc++-v3/testsuite/25_algorithms/rotate/requirements/explicit_instantiation/2.cc
   
trunk/libstdc++-v3/testsuite/25_algorithms/rotate/requirements/explicit_instantiation/pod.cc


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/58357] In C++11 std::rotate(first, middle, last) now should return a forward iterator to  first + (last - middle).
  2013-09-07 23:32 [Bug libstdc++/58357] New: In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle) mhcox at bluezoosoftware dot com
                   ` (2 preceding siblings ...)
  2015-01-17  3:16 ` redi at gcc dot gnu.org
@ 2015-01-17  3:17 ` redi at gcc dot gnu.org
  2015-01-19 10:27 ` [Bug libstdc++/58357] [5 Regression] " redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-01-17  3:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58357

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for GCC 5


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/58357] [5 Regression] In C++11 std::rotate(first, middle, last) now should return a forward iterator to  first + (last - middle).
  2013-09-07 23:32 [Bug libstdc++/58357] New: In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle) mhcox at bluezoosoftware dot com
                   ` (3 preceding siblings ...)
  2015-01-17  3:17 ` redi at gcc dot gnu.org
@ 2015-01-19 10:27 ` redi at gcc dot gnu.org
  2015-02-19 20:58 ` redi at gcc dot gnu.org
  2015-02-19 20:58 ` redi at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-01-19 10:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58357

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
            Summary|In C++11 std::rotate(first, |[5 Regression] In C++11
                   |middle, last) now should    |std::rotate(first, middle,
                   |return a forward iterator   |last) now should return a
                   |to  first + (last -         |forward iterator to  first
                   |middle).                    |+ (last - middle).

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reopening as a reminder to fix the ABI problem Marc pointed out:
https://gcc.gnu.org/ml/libstdc++/2015-01/msg00087.html


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/58357] [5 Regression] In C++11 std::rotate(first, middle, last) now should return a forward iterator to  first + (last - middle).
  2013-09-07 23:32 [Bug libstdc++/58357] New: In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle) mhcox at bluezoosoftware dot com
                   ` (5 preceding siblings ...)
  2015-02-19 20:58 ` redi at gcc dot gnu.org
@ 2015-02-19 20:58 ` redi at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-02-19 20:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58357

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Feb 19 20:57:40 2015
New Revision: 220823

URL: https://gcc.gnu.org/viewcvs?rev=220823&root=gcc&view=rev
Log:
    PR libstdc++/58357
    * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
    * include/bits/stl_algo.h (__rotate, rotate): Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/algorithmfwd.h
    trunk/libstdc++-v3/include/bits/stl_algo.h


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libstdc++/58357] [5 Regression] In C++11 std::rotate(first, middle, last) now should return a forward iterator to  first + (last - middle).
  2013-09-07 23:32 [Bug libstdc++/58357] New: In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle) mhcox at bluezoosoftware dot com
                   ` (4 preceding siblings ...)
  2015-01-19 10:27 ` [Bug libstdc++/58357] [5 Regression] " redi at gcc dot gnu.org
@ 2015-02-19 20:58 ` redi at gcc dot gnu.org
  2015-02-19 20:58 ` redi at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-02-19 20:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58357

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Done.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-02-19 20:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-07 23:32 [Bug libstdc++/58357] New: In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle) mhcox at bluezoosoftware dot com
2013-10-07 23:25 ` [Bug libstdc++/58357] " redi at gcc dot gnu.org
2014-09-17 13:33 ` redi at gcc dot gnu.org
2015-01-17  3:16 ` redi at gcc dot gnu.org
2015-01-17  3:17 ` redi at gcc dot gnu.org
2015-01-19 10:27 ` [Bug libstdc++/58357] [5 Regression] " redi at gcc dot gnu.org
2015-02-19 20:58 ` redi at gcc dot gnu.org
2015-02-19 20:58 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).