re PR c++/84031 (structured binding unpacks nameless padding bitfields)
authorJakub Jelinek <jakub@redhat.com>
Thu, 25 Jan 2018 16:38:40 +0000 (17:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 25 Jan 2018 16:38:40 +0000 (17:38 +0100)
commit41df0109de5fe4ddad66bfd742ee813688362ab8
tree206c7a387ea1a86678e5575437968763e25d30a1
parenta794e494c6e3b1c0d63158e414beaa52ded2eac1
re PR c++/84031 (structured binding unpacks nameless padding bitfields)

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.

From-SVN: r257057
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp36.C [new file with mode: 0644]