diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-11-12 21:44:55 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2005-11-12 21:44:55 +0100 |
commit | 73bebd55f00bd2b0c8e210c2fdd224b3987be7cd (patch) | |
tree | 13bc40e9b1ccff2a909a478f29817ca5fd118ca1 /gcc/testsuite/g++.dg | |
parent | f74dcfb70183a037feaefaa9e6d491249cbafc2f (diff) | |
download | gcc-73bebd55f00bd2b0c8e210c2fdd224b3987be7cd.zip gcc-73bebd55f00bd2b0c8e210c2fdd224b3987be7cd.tar.gz gcc-73bebd55f00bd2b0c8e210c2fdd224b3987be7cd.tar.bz2 |
re PR c++/24780 (ICE set_mem_attributes_minus_bitpos)
PR c++/24780
* typeck.c (complete_type): Set TYPE_NEEDS_CONSTRUCTING
and TYPE_HAS_NONTRIVIAL_DESTRUCTOR flags for all variants
of array type.
* g++.dg/opt/pr24780.C: New test.
From-SVN: r106833
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r-- | gcc/testsuite/g++.dg/opt/pr24780.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/opt/pr24780.C b/gcc/testsuite/g++.dg/opt/pr24780.C new file mode 100644 index 0000000..7baad38 --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/pr24780.C @@ -0,0 +1,14 @@ +// PR c++/24780 +// { dg-do compile } + +template<typename S=int> +struct Move { + Move(); + static Move<S> const MOVES[2][2]; +}; +template<typename S> + Move<S> const Move<S>::MOVES[2][2]={}; +typedef Move<int> const MoveClass; +void moves(int x, int y) { + &MoveClass::MOVES[x][y]; +} |