Commit 24bafc56 by Thomas Koenig

re PR fortran/54633 (ICEs and reject valid with MINLOC/MINVAL (MAXLOC/MAXVAL)…

re PR fortran/54633 (ICEs and reject valid with MINLOC/MINVAL (MAXLOC/MAXVAL) due to lacking compile-time simplification)

2017-09-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/54633
	* gfortran.dg/intrinsic_bounds_1.f90: New test.
	* gfortran.dg/intrinsic_param_1.f90: New test.

From-SVN: r253125
parent 02fdb130
2017-09-24 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/54633
* gfortran.dg/intrinsic_bounds_1.f90: New test.
* gfortran.dg/intrinsic_param_1.f90: New test.
2017-09-24 Thomas Koenig <tkoenig@gcc.gnu.org>
Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/80118
......
! { dg-do compile }
! PR 54633 - this used to be rejected
program main
integer :: x(minval((/1/),mask=(/.TRUE./)))
integer, parameter :: m = minval((/1/))
integer :: y(minval((/1/),mask=(/.TRUE./)))
end
! { dg-do compile }
! { dg-additional-options "-std=f95" }
! PR 54633 - this used to be accepted
program main
integer, parameter :: m = minval((/1/)) ! { dg-error "Transformational function" }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment