This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r129736 - in /trunk/gcc: cp/ChangeLog cp/class....
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 29 Oct 2007 21:41:29 -0000
- Subject: r129736 - in /trunk/gcc: cp/ChangeLog cp/class....
Author: jakub
Date: Mon Oct 29 21:41:29 2007
New Revision: 129736
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129736
Log:
PR c++/33841
* class.c (check_bitfield_decl): Don't set field's type to error_mark_node
for non-integral type bitfields. Return true if bitfield is correct, false
error has been diagnosed.
(check_field_decls): If check_bitfield_decl returned false, call also
check_field_decl.
* g++.dg/other/bitfield3.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/bitfield3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog