re PR c++/46862 (ICE on std::decimal::decimal32 without any fields)
authorJakub Jelinek <jakub@redhat.com>
Tue, 23 Aug 2011 13:20:04 +0000 (15:20 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 23 Aug 2011 13:20:04 +0000 (15:20 +0200)
commitbfcbe068860c133c2bc4a48dbc476d4085aa93fd
treeb3acdbd7ea3f83f55dc2e8c0cdd74e01d4e6c025
parent02f5d6c5e36ea6a41e22f39209248bc1039759b7
re PR c++/46862 (ICE on std::decimal::decimal32 without any fields)

PR c++/46862
* class.c (finish_struct_1): If TYPE_TRANSPARENT_AGGR is set on a type
which doesn't have any fields, clear it and diagnose.

* g++.dg/dfp/nofields.C: New test.

From-SVN: r177987
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/dfp/nofields.C [new file with mode: 0644]