]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.c
re PR c++/3154 (Tree check: expected class 't', have 'd' (type_decl) in is_aggr_type...
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 15 Nov 2001 10:03:41 +0000 (10:03 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 15 Nov 2001 10:03:41 +0000 (10:03 +0000)
commit36a68fe705785961c143e33c0d52aa4d4ef85097
tree0641d81cf0e6078472b02b99684118322500976f
parentf5e99456f19b80978984f781e1d847b90d09b30a
re PR c++/3154 (Tree check: expected class 't', have 'd' (type_decl) in is_aggr_type, at cp/init.c:1435)

cp:
PR g++/3154
* init.c (sort_base_init): Remove unreachable code.
(expand_member_init): Adjust comment to reflect reality. Simplify
and remove unreachable code.
testsuite:
* g++.dg/other/init1.C: New test.

From-SVN: r47047
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/init1.C [new file with mode: 0644]