aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSteven G. Kargl <kargl@gcc.gnu.org>2018-01-19 23:28:18 +0000
committerSteven G. Kargl <kargl@gcc.gnu.org>2018-01-19 23:28:18 +0000
commit3051883cd36232d55dfe829d713db199188394ec (patch)
treec53a9f7f964c4ebf9ba487492a86cb261cd2e978 /gcc
parent1c9a0251aa6d1dd6d17b1c6676a77c1fdd5eda9b (diff)
downloadgcc-3051883cd36232d55dfe829d713db199188394ec.zip
gcc-3051883cd36232d55dfe829d713db199188394ec.tar.gz
gcc-3051883cd36232d55dfe829d713db199188394ec.tar.bz2
re PR fortran/80768 (NULL pointer dereferenced in gfc_check_num_images at fortran/check.c)
2018-01-19 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/80768 * gfortran.dg/num_images_1.f90: New test that tests fix in r250734. From-SVN: r256906
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/num_images_1.f909
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ceb16e5..de96f4d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-19 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/80768
+ * gfortran.dg/num_images_1.f90: New test that tests fix in r250734.
+
2018-01-19 Jakub Jelinek <jakub@redhat.com>
PR c++/81167
diff --git a/gcc/testsuite/gfortran.dg/num_images_1.f90 b/gcc/testsuite/gfortran.dg/num_images_1.f90
new file mode 100644
index 0000000..dac34ba
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/num_images_1.f90
@@ -0,0 +1,9 @@
+! { dg-do compile }
+! { dg-options "-fcoarray=single -std=f2008" }
+! PR Fortran/80768
+! Reported by Vittorio Zecca.
+program foo
+ implicit none
+ integer k5
+ k5 = num_images(failed=.false.) ! { dg-error "argument to NUM_IMAGES" }
+end program foo