]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/15507 (hang laying out union)
authorMark Mitchell <mark@codesourcery.com>
Sat, 22 May 2004 19:28:31 +0000 (19:28 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 22 May 2004 19:28:31 +0000 (19:28 +0000)
commit1e2e9f544cc5a52838b868514b42f8c1016efac0
treee082af0b49a7dd245825f7a8bc7b9ca8cd7b23eb
parent79bba51c2833a33d574533bf16ea63d97d201736
re PR c++/15507 (hang laying out union)

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.

From-SVN: r82144
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]