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
This commit is contained in:
Steven G. Kargl 2018-01-19 23:28:18 +00:00
parent 1c9a0251aa
commit 3051883cd3
2 changed files with 14 additions and 0 deletions

View file

@ -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

View file

@ -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