https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102894
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:923637b6cb70986e83ae0109ec4bcd26fdfe3624 commit r10-10308-g923637b6cb70986e83ae0109ec4bcd26fdfe3624 Author: Jonathan Wakely <jwak...@redhat.com> Date: Fri Oct 22 22:55:00 2021 +0100 libstdc++: Constrain std::make_any [PR102894] std::make_any should be constrained so it can only be called if the construction of the return value would be valid. libstdc++-v3/ChangeLog: PR libstdc++/102894 * include/std/any (make_any): Add SFINAE constraint. * testsuite/20_util/any/102894.cc: New test. (cherry picked from commit 0c1f737a485f05c591c94b50acfb416c45a4c916)