cp-tree.h (enum cp_lvalue_kind): Add clk_packed.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 22 Jul 2003 09:53:34 +0000 (09:53 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 22 Jul 2003 09:53:34 +0000 (09:53 +0000)
commite0d1297c4320ae158fbba12f8d2a0ec2970462ba
tree6679a92cc9d1ed37f7676b33077730a559a92f24
parentc6e4cc53e53de0f671b715bfb83f37dbf73aaf2f
cp-tree.h (enum cp_lvalue_kind): Add clk_packed.

cp:
* cp-tree.h (enum cp_lvalue_kind): Add clk_packed.
* tree.c (lvalue_p_1): Set it.
* class.c (check_field): Don't allow non-packed non-POD fields to
be packed.
* call.c (reference_binding): Need a temporary for all bitfield
and packed fields.
(convert_like_real): Check it is ok to make a temporary here.
testsuite:
* g++.dg/ext/packed3.C: New test.
* g++.dg/ext/packed4.C: New test.

From-SVN: r69669
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/packed3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/packed4.C [new file with mode: 0644]