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