This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/46862] ICE on std::decimal::decimal32 without any fields


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]