aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2014-05-24 19:30:38 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2014-05-24 19:30:38 +0000
commit1ebfdcab6bfc359e1f23a2801935806b46455007 (patch)
tree4426895f998ad14b3fa86104d2e85039efad09e2 /gcc
parent03c0f1952048ea3c781bba93d81afcf2519a49f2 (diff)
downloadgcc-1ebfdcab6bfc359e1f23a2801935806b46455007.zip
gcc-1ebfdcab6bfc359e1f23a2801935806b46455007.tar.gz
gcc-1ebfdcab6bfc359e1f23a2801935806b46455007.tar.bz2
re PR libfortran/61173 (Erroneous "end of file" with internal read)
2014-05-24 Jerry DeLisle <jvdelisle@gcc.gnu> PR libfortran/61173 gfortran.dg/arrayio_14.f90: New test. From-SVN: r210899
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/arrayio_14.f9018
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 69358cb..018fe9e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-24 Jerry DeLisle <jvdelisle@gcc.gnu>
+
+ PR libfortran/61173
+ gfortran.dg/arrayio_14.f90: New test.
+
2014-05-24 Andreas Schwab <schwab@suse.de>
* gcc.c-torture/execute/bswap-2.c (main): Handle more bitfield
diff --git a/gcc/testsuite/gfortran.dg/arrayio_14.f90 b/gcc/testsuite/gfortran.dg/arrayio_14.f90
new file mode 100644
index 0000000..3d878c7
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/arrayio_14.f90
@@ -0,0 +1,18 @@
+! { dg-do run }
+! PR61173.f90 Bogus END condition
+module bd
+ character(len=25, kind=1), dimension(:), allocatable, save :: source
+ contains
+ subroutine init_data
+ allocate(source(2))
+ source=[" 1 1 1 ", " 4 4 4 "]
+ end subroutine init_data
+end module bd
+program read_internal
+ use bd
+ integer :: x(6),i
+
+ call init_data
+ read(source,*) (x(i), i=1,6)
+ if (any(x/=[1,1,1,4,4,4])) call abort
+end program read_internal