https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110836
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Summary|g++ should report when |[C++20] g++ should report |there is no way to create |when there is no way to |structure or class |create structure or class --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Actually, in C++11-C++17 you can create it like: ``` struct Foo { Foo(const Foo&) = delete; }; Foo a{}; ``` Only in C++20+ there is no way to create it.