https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103212
--- Comment #1 from Egor Pugin <egor.pugin at gmail dot com> --- Original code was closer to something like this: --- #include <memory> constexpr bool test = requires { [](auto o) {}(std::unique_ptr<int>{}); }; static_assert(test); ---