diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2013-11-01 06:56:41 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2013-11-01 06:56:41 +0000 |
commit | 942323000bbc5bde768c0f651d62af5eea462c1d (patch) | |
tree | 21a5d70d3b65146576ffbfa333b93fb2c5bf2285 /gcc | |
parent | 7a59fa3a3323e8d0267aea8ff65fc85c571fb0fe (diff) | |
download | gcc-942323000bbc5bde768c0f651d62af5eea462c1d.zip gcc-942323000bbc5bde768c0f651d62af5eea462c1d.tar.gz gcc-942323000bbc5bde768c0f651d62af5eea462c1d.tar.bz2 |
re PR fortran/57893 (Crash for allocatable character string during compilation.)
2013-11-01 Paul Thomas <pault@gcc.gnu.org>
PR fortran/57893
* gfortran.dg/unlimited_polymorphic_13.f90 : Break up select
type block.
From-SVN: r204286
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/unlimited_polymorphic_13.f90 | 10 |
2 files changed, 15 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b231dc8..03ad579 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-11-01 Paul Thomas <pault@gcc.gnu.org> + + PR fortran/57893 + * gfortran.dg/unlimited_polymorphic_13.f90 : Break up select + type block. + 2013-10-31 Jakub Jelinek <jakub@redhat.com> * g++.dg/gomp/simd-1.C: New test. diff --git a/gcc/testsuite/gfortran.dg/unlimited_polymorphic_13.f90 b/gcc/testsuite/gfortran.dg/unlimited_polymorphic_13.f90 index 10f6445..0e27b17 100644 --- a/gcc/testsuite/gfortran.dg/unlimited_polymorphic_13.f90 +++ b/gcc/testsuite/gfortran.dg/unlimited_polymorphic_13.f90 @@ -37,14 +37,22 @@ contains end select if (storage_size(o) /= sz) call abort() + +! Break up the SELECT TYPE to pre-empt collisions in the value of 'cn' select type (o) type is (complex(c1)) if (storage_size(o) /= sz) call abort() + end select + select type (o) type is (complex(c2)) if (storage_size(o) /= sz) call abort() + end select + select type (o) type is (complex(c3)) if (storage_size(o) /= sz) call abort() - type is (complex(c4)) + end select + select type (o) + type is (complex(c4)) if (storage_size(o) /= sz) call abort() end select end subroutine s |