public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/58341] New: Doc conflicts with standard on forbidden range of `result` in copy_backward()
@ 2013-09-06 21:19 kristian.spangsege at gmail dot com
  2013-09-06 21:23 ` [Bug libstdc++/58341] " kristian.spangsege at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: kristian.spangsege at gmail dot com @ 2013-09-06 21:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58341
           Summary: Doc conflicts with standard on forbidden range of
                    `result` in copy_backward()
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kristian.spangsege at gmail dot com

The documentation of copy_backward() in <bits/stl_algobase.h> conflicts with
the C++ standard on the forbidden range of `result`.

The documentation states that `result` must not be within the range [`first`,
`last`). The standard instead requires that `result` is not within the range
(`first`, `last`].

It is probably just a typo.

See C++11 (2011-09-01) section 25.3.1/13.


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

* [Bug libstdc++/58341] Doc conflicts with standard on forbidden range of `result` in copy_backward()
  2013-09-06 21:19 [Bug libstdc++/58341] New: Doc conflicts with standard on forbidden range of `result` in copy_backward() kristian.spangsege at gmail dot com
@ 2013-09-06 21:23 ` kristian.spangsege at gmail dot com
  2013-09-06 21:26 ` kristian.spangsege at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kristian.spangsege at gmail dot com @ 2013-09-06 21:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Kristian Spangsege <kristian.spangsege at gmail dot com> ---
Important related information here:
http://en.cppreference.com/w/Talk:cpp/algorithm/copy_backward


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

* [Bug libstdc++/58341] Doc conflicts with standard on forbidden range of `result` in copy_backward()
  2013-09-06 21:19 [Bug libstdc++/58341] New: Doc conflicts with standard on forbidden range of `result` in copy_backward() kristian.spangsege at gmail dot com
  2013-09-06 21:23 ` [Bug libstdc++/58341] " kristian.spangsege at gmail dot com
@ 2013-09-06 21:26 ` kristian.spangsege at gmail dot com
  2013-09-07  9:20 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kristian.spangsege at gmail dot com @ 2013-09-06 21:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Kristian Spangsege <kristian.spangsege at gmail dot com> ---
And more importantly, here:
http://cplusplus.github.io/LWG/lwg-defects.html#1206


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

* [Bug libstdc++/58341] Doc conflicts with standard on forbidden range of `result` in copy_backward()
  2013-09-06 21:19 [Bug libstdc++/58341] New: Doc conflicts with standard on forbidden range of `result` in copy_backward() kristian.spangsege at gmail dot com
  2013-09-06 21:23 ` [Bug libstdc++/58341] " kristian.spangsege at gmail dot com
  2013-09-06 21:26 ` kristian.spangsege at gmail dot com
@ 2013-09-07  9:20 ` redi at gcc dot gnu.org
  2013-09-07 22:57 ` paolo at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2013-09-07  9:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The docs just haven't been updated to show the DR resolution


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

* [Bug libstdc++/58341] Doc conflicts with standard on forbidden range of `result` in copy_backward()
  2013-09-06 21:19 [Bug libstdc++/58341] New: Doc conflicts with standard on forbidden range of `result` in copy_backward() kristian.spangsege at gmail dot com
                   ` (2 preceding siblings ...)
  2013-09-07  9:20 ` redi at gcc dot gnu.org
@ 2013-09-07 22:57 ` paolo at gcc dot gnu.org
  2013-09-07 22:58 ` paolo at gcc dot gnu.org
  2013-09-07 22:58 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo at gcc dot gnu.org @ 2013-09-07 22:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sat Sep  7 22:57:49 2013
New Revision: 202357

URL: http://gcc.gnu.org/viewcvs?rev=202357&root=gcc&view=rev
Log:
2013-09-07  Paolo Carlini  <paolo.carlini@oracle.com>

    PR libstdc++/58341
    * include/bits/stl_algobase.h (copy_backward): Fix documentation
    per DR 1206.

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


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

* [Bug libstdc++/58341] Doc conflicts with standard on forbidden range of `result` in copy_backward()
  2013-09-06 21:19 [Bug libstdc++/58341] New: Doc conflicts with standard on forbidden range of `result` in copy_backward() kristian.spangsege at gmail dot com
                   ` (3 preceding siblings ...)
  2013-09-07 22:57 ` paolo at gcc dot gnu.org
@ 2013-09-07 22:58 ` paolo at gcc dot gnu.org
  2013-09-07 22:58 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo at gcc dot gnu.org @ 2013-09-07 22:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sat Sep  7 22:58:04 2013
New Revision: 202358

URL: http://gcc.gnu.org/viewcvs?rev=202358&root=gcc&view=rev
Log:
2013-09-07  Paolo Carlini  <paolo.carlini@oracle.com>

    PR libstdc++/58341
    * include/bits/stl_algobase.h (copy_backward): Fix documentation
    per DR 1206.

Modified:
    branches/gcc-4_8-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_8-branch/libstdc++-v3/include/bits/stl_algobase.h


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

* [Bug libstdc++/58341] Doc conflicts with standard on forbidden range of `result` in copy_backward()
  2013-09-06 21:19 [Bug libstdc++/58341] New: Doc conflicts with standard on forbidden range of `result` in copy_backward() kristian.spangsege at gmail dot com
                   ` (4 preceding siblings ...)
  2013-09-07 22:58 ` paolo at gcc dot gnu.org
@ 2013-09-07 22:58 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-09-07 22:58 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.8.2

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done for 4.9.0 and 4.8.2.


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

end of thread, other threads:[~2013-09-07 22:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-06 21:19 [Bug libstdc++/58341] New: Doc conflicts with standard on forbidden range of `result` in copy_backward() kristian.spangsege at gmail dot com
2013-09-06 21:23 ` [Bug libstdc++/58341] " kristian.spangsege at gmail dot com
2013-09-06 21:26 ` kristian.spangsege at gmail dot com
2013-09-07  9:20 ` redi at gcc dot gnu.org
2013-09-07 22:57 ` paolo at gcc dot gnu.org
2013-09-07 22:58 ` paolo at gcc dot gnu.org
2013-09-07 22:58 ` paolo.carlini at oracle dot com

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).