[Bug c++/80605] [7/8 Regression] Bad is_standard_layout result with empty base classes
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 31 18:46:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80605
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed May 31 17:53:06 2017
New Revision: 248753
URL: https://gcc.gnu.org/viewcvs?rev=248753&root=gcc&view=rev
Log:
PR c++/80605 - __is_standard_layout and empty base
* class.c (check_bases): Ignore empty bases.
* class.c (check_bases): Use DECL_FIELD_IS_BASE.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/is_std_layout1.C
branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/is_std_layout2.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/class.c
More information about the Gcc-bugs
mailing list