class.c (check_bitfield_decl): New function, split out from finish_stuct_1.
authorMark Mitchell <mark@codesourcery.com>
Wed, 3 Nov 1999 21:34:04 +0000 (21:34 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 3 Nov 1999 21:34:04 +0000 (21:34 +0000)
commit1e30f9b4da5c6f2503d459b41e08db56fd7c6174
tree3bb7cad6eec2fea3aa04b5db450f0990caa4566a
parent4b66e1c09193e7606ebe6009a872bace584a0eb9
class.c (check_bitfield_decl): New function, split out from finish_stuct_1.

* class.c (check_bitfield_decl): New function, split out from
finish_stuct_1.
(check_field_decl): Likewise.  Recursively examine members of
anonymous structs.
(finish_struct_1): Use them.
* cp-tree.h (ANON_UNION_TYPE_P): New macro.

From-SVN: r30381
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/testsuite/g++.old-deja/g++.ext/anon2.C [new file with mode: 0644]