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++/56166] std::string::clear() can throw despite being marked noexcept


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

--- Comment #11 from Marc Glisse <glisse at gcc dot gnu.org> ---
Author: glisse
Date: Tue Sep 24 10:07:32 2013
New Revision: 202861

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

    PR libstdc++/58338
    PR libstdc++/56166
    * include/bits/basic_string.h (basic_string)
    [basic_string(basic_string&&)]: Make the noexcept conditional.
    [operator=(basic_string&&), assign(basic_string&&)]: Link to PR 58265.
    [begin(), end(), rbegin(), rend(), clear]: Remove noexcept.
    [pop_back]: Comment on the lack of noexcept.
    * include/debug/string (basic_string) [basic_string(const _Allocator&),
    basic_string(basic_string&&), begin(), end(), rbegin(), rend(), clear,
    operator[](size_type), pop_back]: Comment out noexcept, until vstring
    replaces basic_string.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/basic_string.h
    trunk/libstdc++-v3/include/debug/string


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