re PR fortran/51260 (PARAMETER array with constructor initializer: Compile-time simpl...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 9 Apr 2018 21:05:13 +0000 (21:05 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 9 Apr 2018 21:05:13 +0000 (21:05 +0000)
commit06e8d82eba434c70d409b3d61b37b3427733e904
treee85f2120dd54e789c13367c4c18fe819c8c92089
parent17434237d3132a425c988dd8c0d1ac1a63ca34ae
re PR fortran/51260 (PARAMETER array with constructor initializer: Compile-time simplify single element access)

2018-04-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/51260
* resolve.c (resolve_variable): Simplify cases where access to a
parameter array results in a single constant.

2018-04-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/51260
* gfortran.dg/parameter_array_element_3.f90: New test.

From-SVN: r259256
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/parameter_array_element_3.f90 [new file with mode: 0644]