PR c++/84031
commitff0c900f5db4de5f236b19e774ca6fd0e4708dea
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Jan 2018 16:38:40 +0000 (25 16:38 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Jan 2018 16:38:40 +0000 (25 16:38 +0000)
tree206c7a387ea1a86678e5575437968763e25d30a1
parent18b2cf38f233df87c59295db2d82106e691225aa
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257057 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp36.C [new file with mode: 0644]