* decl2.c (finish_anon_union): Generalize error messages to handle
commitc8470848807b007c065a5beef4386551613f0a98
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 May 2000 18:46:32 +0000 (17 18:46 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 May 2000 18:46:32 +0000 (17 18:46 +0000)
tree757b0885c16d983c79e15343fd00c84bd9038798
parente35f919dee78b7191fb06ca5f84d3dded1701151
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33963 138bc75d-0d04-0410-961f-82ee72b054a4
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]