OSDN Git Service

* method.c (do_build_assign_ref): Don't use build_modify_expr for
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Mar 2001 17:00:28 +0000 (17:00 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Mar 2001 17:00:28 +0000 (17:00 +0000)
commit69821268e4e66264e3810c6beeeaa1b7257c4058
tree26afc3398dd6f2811e7b32647281ae6caa2dd29a
parentc83c821826c5bb99e12ce408a862c90443011f36
* method.c (do_build_assign_ref): Don't use build_modify_expr for
anonymous aggregates, since they don't have assignment operator
method.
* decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
assignment operators for anonymous structure fields.

* g++.old-deja/g++.other/anon8.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40746 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/anon8.C [new file with mode: 0644]