blob: 2247f1b9bd1d1d05f25123277166fcac347c31e1 [file]
// { dg-do compile { target c++26 } }
#include <memory>
struct A {};
template<typename T>
struct B {};
template<>
class std::polymorphic<A, std::pmr::polymorphic_allocator <A>> {}; // { dg-error "cannot be specialized" }
template<typename T>
class std::polymorphic<B<T>, std::pmr::polymorphic_allocator <B<T>>> {}; // { dg-error "cannot be specialized" }