[Bug c++/110836] [C++20] g++ should report when there is no way to create structure or class
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 28 06:20:39 GMT 2023
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.
More information about the Gcc-bugs
mailing list