]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.cc
decl2.c (finish_anon_union): Generalize error messages to handle anonymous structures.
authorMark Mitchell <mark@codesourcery.com>
Wed, 17 May 2000 18:46:32 +0000 (18:46 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 17 May 2000 18:46:32 +0000 (18:46 +0000)
commitff9f1a5d55bfaec0d7267b5f50bf0048436a119d
tree757b0885c16d983c79e15343fd00c84bd9038798
parent2c0b35cb894747518533852e3a60cde8a8e6250b
decl2.c (finish_anon_union): Generalize error messages to handle anonymous structures.

* decl2.c (finish_anon_union): Generalize error messages to handle
anonymous structures.
* init.c (perform_member_init): Remove `name' parameter.
(build_field_list): New function.
(sort_member_init): Handle anonymous union initialization order
correctly.  Check for multiple initializations of the same union.
(emit_base_init): Don't look up fields by name here.
(expand_member_init): Record the result of name lookup for future
reference.
* typeck.c (build_component_ref): Fix formatting.

From-SVN: r33963
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.other/union3.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/union4.C [new file with mode: 0644]