https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104242
Bug ID: 104242 Summary: Class with constructor from std::any is not copyable Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fchelnokov at gmail dot com Target Milestone: --- The following code ``` #include <any> #include <type_traits> struct A { A(const A&) = default; explicit A(std::any value); }; static_assert(std::is_copy_constructible_v<A>); ``` is accepted by GCC 11, but rejected by GCC trunk. Demo: https://gcc.godbolt.org/z/sWTbhqE6c