[Bug libstdc++/68276] ios_base::_M_grow_words should use new (std::nothrow)

2015-12-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68276

--- Comment #6 from Jonathan Wakely  ---
Author: redi
Date: Mon Dec 21 13:02:12 2015
New Revision: 231879

URL: https://gcc.gnu.org/viewcvs?rev=231879=gcc=rev
Log:
libstdc++/68276 consistently qualify std::forward

PR libstdc++/68276
* include/std/functional (__invoke_impl, _Mem_fn::operator()): Qualify
std::forward.
testsuite/20_util/function_objects/mem_fn/68276.cc: New.

Added:
trunk/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/68276.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/functional

[Bug libstdc++/68276] ios_base::_M_grow_words should use new (std::nothrow)

2015-12-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68276

--- Comment #7 from Jonathan Wakely  ---
Oops, that was meant to be for Bug 68982

[Bug libstdc++/68276] ios_base::_M_grow_words should use new (std::nothrow)

2015-12-18 Thread ville at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68276

--- Comment #2 from ville at gcc dot gnu.org ---
Author: ville
Date: Fri Dec 18 15:17:09 2015
New Revision: 231819

URL: https://gcc.gnu.org/viewcvs?rev=231819=gcc=rev
Log:
2015-12-18  Ville Voutilainen  

PR libstdc++/68276

* src/c++11/ios.cc (_M_grow_words): Use nothrow new.
* testsuite/27_io/ios_base/storage/11584.cc: Adjust.

Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/src/c++11/ios.cc
trunk/libstdc++-v3/testsuite/27_io/ios_base/storage/11584.cc

[Bug libstdc++/68276] ios_base::_M_grow_words should use new (std::nothrow)

2015-12-18 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68276

Ville Voutilainen  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Ville Voutilainen  ---
Done.

[Bug libstdc++/68276] ios_base::_M_grow_words should use new (std::nothrow)

2015-12-18 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68276

--- Comment #5 from Ville Voutilainen  ---
The enhancement PR is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68989.

[Bug libstdc++/68276] ios_base::_M_grow_words should use new (std::nothrow)

2015-12-18 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68276

--- Comment #4 from Ville Voutilainen  ---
The current approach still needs to catch bad_new_array_length exceptions. That
is intended to be solved by
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1992 so once we get
to stage 1 for gcc 7, we can tune this
further. I'll open a new enhancement PR for that and link this one to it.

[Bug libstdc++/68276] ios_base::_M_grow_words should use new (std::nothrow)

2015-12-15 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68276

Ville Voutilainen  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2015-12-15
 CC||ville.voutilainen at gmail dot 
com
   Assignee|unassigned at gcc dot gnu.org  |ville.voutilainen at 
gmail dot com
 Ever confirmed|0   |1

--- Comment #1 from Ville Voutilainen  ---
Mine.