public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator
@ 2012-09-14  1:06 thunderliu at gmail dot com
  2012-09-14  9:41 ` [Bug libstdc++/54577] " paolo.carlini at oracle dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: thunderliu at gmail dot com @ 2012-09-14  1:06 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54577
           Summary: deque<T>::erase() still takes iterator instead of
                    const_iterator
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: thunderliu@gmail.com


In C++11 mode, deque::erase() should be able to take const_iterator instead of
iterator. It's not reflected in bits/deque.tcc yet. Checked 4.7, it's the same.

(Line 193 of bits/deque.tcc:)

  template <typename _Tp, typename _Alloc>
    typename deque<_Tp, _Alloc>::iterator
    deque<_Tp, _Alloc>::
    erase(iterator __position)


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

* [Bug libstdc++/54577] deque<T>::erase() still takes iterator instead of const_iterator
  2012-09-14  1:06 [Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator thunderliu at gmail dot com
@ 2012-09-14  9:41 ` paolo.carlini at oracle dot com
  2012-09-30 11:40 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-09-14  9:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jwakely.gcc at gmail dot
                   |                            |com

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-14 09:41:04 UTC ---
Yes, yes, probably we should update the docs about this, it's a known issue,
true for the ordered containers too (when a const_iterator is actually !=
iterator)


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

* [Bug libstdc++/54577] deque<T>::erase() still takes iterator instead of const_iterator
  2012-09-14  1:06 [Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator thunderliu at gmail dot com
  2012-09-14  9:41 ` [Bug libstdc++/54577] " paolo.carlini at oracle dot com
@ 2012-09-30 11:40 ` redi at gcc dot gnu.org
  2012-12-13 15:31 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2012-09-30 11:40 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-09-30 11:40:11 UTC ---
Author: redi
Date: Sun Sep 30 11:40:06 2012
New Revision: 191866

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191866
Log:
    PR libstdc++/54577
    * doc/xml/manual/status_cxx2011.xml: N2350 changes are missing from
    sequence containers.
    * doc/html/*: Regenerate.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/doc/html/api.html
    trunk/libstdc++-v3/doc/html/faq.html
    trunk/libstdc++-v3/doc/html/index.html
    trunk/libstdc++-v3/doc/html/manual/abi.html
    trunk/libstdc++-v3/doc/html/manual/algorithms.html
    trunk/libstdc++-v3/doc/html/manual/api.html
    trunk/libstdc++-v3/doc/html/manual/appendix_contributing.html
    trunk/libstdc++-v3/doc/html/manual/appendix_free.html
    trunk/libstdc++-v3/doc/html/manual/appendix_gpl.html
    trunk/libstdc++-v3/doc/html/manual/appendix_porting.html
    trunk/libstdc++-v3/doc/html/manual/atomics.html
    trunk/libstdc++-v3/doc/html/manual/backwards.html
    trunk/libstdc++-v3/doc/html/manual/bk01pt02.html
    trunk/libstdc++-v3/doc/html/manual/bk01pt03ch17s03.html
    trunk/libstdc++-v3/doc/html/manual/bk01pt03ch18s03.html
    trunk/libstdc++-v3/doc/html/manual/bk01pt03ch19s02.html
    trunk/libstdc++-v3/doc/html/manual/bk01pt03ch19s07.html
    trunk/libstdc++-v3/doc/html/manual/bk01pt03ch21s02.html
    trunk/libstdc++-v3/doc/html/manual/bk01pt03pr01.html
    trunk/libstdc++-v3/doc/html/manual/bk01pt04.html
    trunk/libstdc++-v3/doc/html/manual/concurrency.html
    trunk/libstdc++-v3/doc/html/manual/configure.html
    trunk/libstdc++-v3/doc/html/manual/containers.html
    trunk/libstdc++-v3/doc/html/manual/diagnostics.html
    trunk/libstdc++-v3/doc/html/manual/documentation_hacking.html
    trunk/libstdc++-v3/doc/html/manual/extensions.html
    trunk/libstdc++-v3/doc/html/manual/facets.html
    trunk/libstdc++-v3/doc/html/manual/index.html
    trunk/libstdc++-v3/doc/html/manual/intro.html
    trunk/libstdc++-v3/doc/html/manual/io.html
    trunk/libstdc++-v3/doc/html/manual/iterators.html
    trunk/libstdc++-v3/doc/html/manual/localization.html
    trunk/libstdc++-v3/doc/html/manual/memory.html
    trunk/libstdc++-v3/doc/html/manual/numerics.html
    trunk/libstdc++-v3/doc/html/manual/parallel_mode.html
    trunk/libstdc++-v3/doc/html/manual/policy_data_structures.html
    trunk/libstdc++-v3/doc/html/manual/policy_data_structures_design.html
    trunk/libstdc++-v3/doc/html/manual/policy_data_structures_using.html
    trunk/libstdc++-v3/doc/html/manual/profile_mode.html
    trunk/libstdc++-v3/doc/html/manual/status.html
    trunk/libstdc++-v3/doc/html/manual/strings.html
    trunk/libstdc++-v3/doc/html/manual/support.html
    trunk/libstdc++-v3/doc/html/manual/test.html
    trunk/libstdc++-v3/doc/html/manual/using.html
    trunk/libstdc++-v3/doc/html/manual/using_exceptions.html
    trunk/libstdc++-v3/doc/html/manual/using_headers.html
    trunk/libstdc++-v3/doc/html/manual/utilities.html
    trunk/libstdc++-v3/doc/xml/manual/status_cxx2011.xml


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

* [Bug libstdc++/54577] deque<T>::erase() still takes iterator instead of const_iterator
  2012-09-14  1:06 [Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator thunderliu at gmail dot com
  2012-09-14  9:41 ` [Bug libstdc++/54577] " paolo.carlini at oracle dot com
  2012-09-30 11:40 ` redi at gcc dot gnu.org
@ 2012-12-13 15:31 ` paolo.carlini at oracle dot com
  2013-05-03 12:40 ` paolo.carlini at oracle dot com
  2013-05-10 15:19 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-12-13 15:31 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sbock at hsr dot ch

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-12-13 15:31:06 UTC ---
*** Bug 55675 has been marked as a duplicate of this bug. ***


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

* [Bug libstdc++/54577] deque<T>::erase() still takes iterator instead of const_iterator
  2012-09-14  1:06 [Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator thunderliu at gmail dot com
                   ` (2 preceding siblings ...)
  2012-12-13 15:31 ` paolo.carlini at oracle dot com
@ 2013-05-03 12:40 ` paolo.carlini at oracle dot com
  2013-05-10 15:19 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-03 12:40 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-05-03
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com
     Ever Confirmed|0                           |1

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-05-03 12:40:22 UTC ---
Can do this soon. AFAICS only the sequence containers are still wrong vs C++11.


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

* [Bug libstdc++/54577] deque<T>::erase() still takes iterator instead of const_iterator
  2012-09-14  1:06 [Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator thunderliu at gmail dot com
                   ` (3 preceding siblings ...)
  2013-05-03 12:40 ` paolo.carlini at oracle dot com
@ 2013-05-10 15:19 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-10 15:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.0

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


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

end of thread, other threads:[~2013-05-10 15:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-14  1:06 [Bug libstdc++/54577] New: deque<T>::erase() still takes iterator instead of const_iterator thunderliu at gmail dot com
2012-09-14  9:41 ` [Bug libstdc++/54577] " paolo.carlini at oracle dot com
2012-09-30 11:40 ` redi at gcc dot gnu.org
2012-12-13 15:31 ` paolo.carlini at oracle dot com
2013-05-03 12:40 ` paolo.carlini at oracle dot com
2013-05-10 15:19 ` 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).