call.c (build_over_call): Don't throw away initializations/copies of empty classes...
authorMark Mitchell <mark@codesourcery.com>
Mon, 17 May 1999 07:42:26 +0000 (07:42 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 17 May 1999 07:42:26 +0000 (07:42 +0000)
commitc1aa4de772757f0c5afb61f8ebcf58550fc62a83
treeb1c29c81f940d1d1cf394201e11ed95b079eafcf
parentc15398de775ea6bb100d761e7ebad03d2daec8a4
call.c (build_over_call): Don't throw away initializations/copies of empty classes...

* call.c (build_over_call): Don't throw away
initializations/copies of empty classes; use MODIFY_EXPR and
INIT_EXPR as for non-empty classes.
* class.c (finish_struct_1): Put the padding byte for an empty
class on the TYPE_NONCOPIED_PARTS list for the class.

From-SVN: r26970
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/testsuite/g++.old-deja/g++.other/empty1.C [new file with mode: 0644]