[Bug libstdc++/101034] wrong constraint in std::any's constructor
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 14 18:52:05 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101034
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:b0d29239bd2e90b4d0af6608c01c1a1a40d617f3
commit r10-9914-gb0d29239bd2e90b4d0af6608c01c1a1a40d617f3
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Jun 14 14:18:33 2021 +0100
libstdc++: Fix std::any constraints [PR101034]
PR libstdc++/101034
libstdc++-v3/ChangeLog:
* include/std/any (any(in_place_t<T>, initializer_list<U>, A&&...))
(any::emplace<T>(initializer_list<U>, A&&...)): Fix constraint
to use lvalue.
* testsuite/20_util/any/cons/101034.cc: New test.
(cherry picked from commit 14f26c75d255ef05b706a12d25b003da8a2f5b45)
More information about the Gcc-bugs
mailing list