]> gcc.gnu.org Git - gcc.git/commit
Implement anonymous structs.
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 19 May 1999 10:44:22 +0000 (10:44 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 19 May 1999 10:44:22 +0000 (06:44 -0400)
commit6bdb8141ecb7e23a269e1dac1dd98fcf7b5e6b8b
treef4a2d76ef728e21180a863ba3b68bc67af34dcce
parentcb6c8ebb73aee0931d64fd532d11c9830339f348
Implement anonymous structs.

* cp-tree.h (ANON_AGGR_TYPE_P): Rename from ANON_UNION_TYPE_P.
* class.c, decl.c, decl2.c, init.c, pt.c, search.c, typeck.c: Adjust.
* class.c (finish_struct_1): Remove redundant check for anon struct.
* decl.c (fixup_anonymous_aggr): Renamed from fixup_anonymous_union.
(check_tag_decl): Check for anonymous struct here.
* decl2.c (build_anon_union_vars): Catch anon struct at file scope.
* init.c (sort_member_init, emit_base_init): Handle getting fields
as well as names in current_member_init_list.
(perform_member_init): Handle getting an anon aggr.
* method.c (do_build_assign_ref): Don't descend into anon aggrs.
(do_build_copy_constructor): Likewise.

From-SVN: r27027
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/typeck.c
This page took 0.065617 seconds and 5 git commands to generate.