This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46862] ICE on std::decimal::decimal32 without any fields
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Aug 2011 13:23:29 +0000
- Subject: [Bug c++/46862] ICE on std::decimal::decimal32 without any fields
- Auto-submitted: auto-generated
- References: <bug-46862-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46862
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-08-23 13:23:29 UTC ---
Author: jakub
Date: Tue Aug 23 13:23:22 2011
New Revision: 177988
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177988
Log:
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.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/dfp/nofields.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/class.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog