[Bug c++/84031] structured binding unpacks nameless padding bitfields
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 25 16:39:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84031
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 25 16:38:40 2018
New Revision: 257057
URL: https://gcc.gnu.org/viewcvs?rev=257057&root=gcc&view=rev
Log:
PR c++/84031
* decl.c (find_decomp_class_base): Ignore unnamed bitfields. Ignore
recursive calls that return ret.
(cp_finish_decomp): Ignore unnamed bitfields.
* g++.dg/cpp1z/decomp36.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/decomp36.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list