re PR c++/9881 (What is an address constant expression?)
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 21 Apr 2003 11:16:57 +0000 (11:16 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 21 Apr 2003 11:16:57 +0000 (11:16 +0000)
commit8de9bb0eb6b5c48572d87fd616e8b21c702b38ad
tree0911d79333a2d1d3058de7d921e6c97a7425d989
parent0f0b91be0ace765e0497add16f7937bb53b7ef93
re PR c++/9881 (What is an address constant expression?)

cp:
PR c++/9881
* typeck.c (build_unary_op): Fold all COMPONENT_REF addr
expressions. Reverts my 2002-08-08 patch.

* typeck.c (comp_ptr_ttypes_real): Swap final && operands for
cheaper early exit.
testsuite:
PR c++/9881
* g++.dg/init/addr-const1.C: New test.
* g++.dg/other/packed1.C: XFAIL on aligned architectures.

From-SVN: r65882
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/addr-const1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/packed1.C