This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/60497] unique_ptr<T> tries to complete its type T even though it's not required to be a complete type
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 May 2014 17:22:40 +0000
- Subject: [Bug libstdc++/60497] unique_ptr<T> tries to complete its type T even though it's not required to be a complete type
- Auto-submitted: auto-generated
- References: <bug-60497-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60497
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue May 13 17:22:08 2014
New Revision: 210388
URL: http://gcc.gnu.org/viewcvs?rev=210388&root=gcc&view=rev
Log:
PR libstdc++/60497
* include/debug/array (get): Qualify call to other get overload.
* include/profile/array (get): Likewise.
* include/std/array (get): Likewise.
* include/std/functional (_Mu, _Bind, _Bind_result): Qualify std::get.
* include/std/mutex (unique_lock, call_once): Use __addressof.
(__unlock_impl): Remove unused template.
(__try_to_lock): Declare inline.
(__try_lock_impl::__do_try_lock): Qualify function calls.
(lock): Avoid narrowing conversion.
* testsuite/20_util/bind/60497.cc: New.
* testsuite/23_containers/array/element_access/60497.cc: New.
* testsuite/30_threads/call_once/60497.cc: New.
* testsuite/30_threads/unique_lock/cons/60497.cc: New.
Added:
trunk/libstdc++-v3/testsuite/20_util/bind/60497.cc
trunk/libstdc++-v3/testsuite/23_containers/array/element_access/60497.cc
trunk/libstdc++-v3/testsuite/30_threads/call_once/60497.cc
trunk/libstdc++-v3/testsuite/30_threads/unique_lock/cons/60497.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/debug/array
trunk/libstdc++-v3/include/profile/array
trunk/libstdc++-v3/include/std/array
trunk/libstdc++-v3/include/std/functional
trunk/libstdc++-v3/include/std/mutex