[Bug other/103681] Unusual behavior for tail padding with different c++ standards
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 13 12:26:42 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103681
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |blocker
Keywords| |ABI, wrong-code
Ever confirmed|0 |1
Last reconfirmed| |2021-12-13
Known to fail| |12.0
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Some more information from
Jonathan Wakely:
The C++14 behaviour started with r216750
Implement N3653 (Member initializers and aggregates) and fix
references to 'this' in constexpr cons
tructors.
Implement N3653 (Member initializers and aggregates) and fix
references to 'this' in constexpr constructors.
* class.c (check_field_decls): In C++14 an NSDMI does not make the
class non-aggregate.
But I think the layout should be using "POD for the purpose of
layout", which means the C++98 POD rules. Please do report it to
bugzilla.
More information about the Gcc-bugs
mailing list