re PR fortran/70330 (ICE with -Wextra -Wno-unused-dummy-argument and unused optional dummy argument)

2017-11-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/70330
	* gfortran.dg/pr70330.f90: New test.

From-SVN: r254406
This commit is contained in:
Thomas Koenig 2017-11-04 13:54:27 +00:00
parent 9a3d38f6dc
commit 0260e27840
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-11-04 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/70330
* gfortran.dg/pr70330.f90: New test.
2017-11-04 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/29600

View File

@ -0,0 +1,7 @@
! { dg-do compile }
! { dg-additional-options "-Wall -Wextra -Wno-unused-dummy-argument" }
! PR fortran/70330 - this used to cause an ICE.
! Test case by Vladimir Fuka
function f(o) ! { dg-warning "Return value of function" }
optional o
end function f