[Bug c++/54319] empty class causes error while non-empty does not
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 28 00:32:03 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54319
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Summary|Assignment to rvalue |empty class causes error
| |while non-empty does not
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note even the following X causes an error:
struct X {int :1;};
Maybe that will give a hint of where the bug is located.
More information about the Gcc-bugs
mailing list