2018-12-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88206
* match.c (gfc_match_type_spec): REAL can be an intrinsic function.
2018-12-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88206
* gfortran.dg/pr88206.f90: New test.
From-SVN: r266930
+2018-12-09 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/88206
+ * match.c (gfc_match_type_spec): REAL can be an intrinsic function.
+
2018-12-09 Fritz Reese <fritzoreese@gmail.com>
PR fortran/88228
return MATCH_NO;
}
+ if (e->expr_type != EXPR_CONSTANT)
+ goto ohno;
+
gfc_next_char (); /* Burn the ')'. */
ts->kind = (int) mpz_get_si (e->value.integer);
if (gfc_validate_kind (ts->type, ts->kind , true) == -1)
}
}
+ohno:
+
/* If a type is not matched, simply return MATCH_NO. */
gfc_current_locus = old_locus;
return MATCH_NO;
+2018-12-09 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/88206
+ * gfortran.dg/pr88206.f90: New test.
+
2018-12-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88228
--- /dev/null
+! { dg-do compile }
+! PR fortran/88206
+program p
+ integer, parameter :: z(4) = [1,2,3,4]
+ integer :: k = 2
+ print *, [real(z(k))]
+end
+