PR c++/15507
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 May 2004 19:28:31 +0000 (19:28 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 May 2004 19:28:31 +0000 (19:28 +0000)
commit550bbfa8d896a7207e889bd05f37e28679f7e333
treee082af0b49a7dd245825f7a8bc7b9ca8cd7b23eb
parentb6c9b3052d946a21dac0062a224edc5e6cb86d88
PR c++/15507
* class.c (layout_nonempty_base_or_field): Do not try to avoid
layout conflicts for unions.

PR c++/15542
* typeck.c (build_x_unary_op): Instantiate template class
specializations before looking for "operator &".

PR c++/15427
* typeck.c (complete_type): Layout non-dependent array types, even
in templates.

PR c++/15287
* typeck.c (build_unary_op): Do not optimize "&x[y]" when in a
template.

PR c++/15507
* g++.dg/inherit/union1.C: New test.

PR c++/15542
* g++.dg/template/addr1.C: New test.

PR c++/15427
* g++.dg/template/array5.C: New test.

PR c++/15287
* g++.dg/template/array6.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82144 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/union1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/addr1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/array5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/array6.C [new file with mode: 0644]