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++/58338] Add noexcept to functions with a narrow contract


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

--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> ---
Author: glisse
Date: Wed Sep 18 18:31:01 2013
New Revision: 202716

URL: http://gcc.gnu.org/viewcvs?rev=202716&root=gcc&view=rev
Log:
2013-09-18  Marc Glisse  <marc.glisse@inria.fr>

    PR libstdc++/58338
    * include/bits/stl_iterator.h (__normal_iterator) [__normal_iterator,
    _M_const_cast, operator*, operator->, operator++, operator--,
    operator[], operator+=, operator+, operator-=, operator-, base]:
    Mark as noexcept.
    (operator==(const __normal_iterator&, const __normal_iterator&),
    operator!=(const __normal_iterator&, const __normal_iterator&),
    operator<(const __normal_iterator&, const __normal_iterator&),
    operator>(const __normal_iterator&, const __normal_iterator&),
    operator<=(const __normal_iterator&, const __normal_iterator&),
    operator>=(const __normal_iterator&, const __normal_iterator&),
    operator-(const __normal_iterator&, const __normal_iterator&),
    operator+(difference_type, const __normal_iterator&)): Likewise.
    * include/bits/stl_list.h (list) [splice, _M_check_equal_allocators]:
    Likewise.
    (list::_M_check_equal_allocators): Abort instead of throwing.
    * include/debug/array (array) [operator[], front, back]: Mark as
    noexcept.
    * include/profile/array (array) [operator[], front, back]: Likewise.
    * include/std/array (array) [operator[], front, back]: Likewise.
    * include/debug/list (list::splice): Likewise.
    * include/profile/list (list::splice): Likewise.
    * testsuite/23_containers/list/operations/5.cc: Remove file.
    * testsuite/23_containers/list/operations/5.h: Likewise.

Removed:
    trunk/libstdc++-v3/testsuite/23_containers/list/operations/5.cc
    trunk/libstdc++-v3/testsuite/23_containers/list/operations/5.h
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_iterator.h
    trunk/libstdc++-v3/include/bits/stl_list.h
    trunk/libstdc++-v3/include/debug/array
    trunk/libstdc++-v3/include/debug/list
    trunk/libstdc++-v3/include/profile/array
    trunk/libstdc++-v3/include/profile/list
    trunk/libstdc++-v3/include/std/array


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