2019-03-13 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/87673
Backport from trunk
* match.c (gfc_match_type_spec): Remove call to
gfc_resolve_expr for character length.
2019-03-13 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/87673
Backport from trunk
* gfortran.dg/charlen_17.f90: New test.
From-SVN: r269666
+2019-03-13 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/87673
+ Backport from trunk
+ * match.c (gfc_match_type_spec): Remove call to
+ gfc_resolve_expr for character length.
+
2019-03-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/71544
ts->type = BT_CHARACTER;
m = gfc_match_char_spec (ts);
- if (ts->u.cl && ts->u.cl->length)
- gfc_resolve_expr (ts->u.cl->length);
if (m == MATCH_NO)
m = MATCH_YES;
+2019-03-13 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/87673
+ Backport from trunk
+ * gfortran.dg/charlen_17.f90: New test.
+
2019-03-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
Backport from mainline
--- /dev/null
+! { dg-do compile }
+! PR 87673 - used to cause errors about non-pure functions.
+
+module x
+ implicit none
+contains
+ pure function foo() result(res)
+ character(len=:), allocatable :: res
+ allocate (character(bar()) :: res)
+ end function foo
+ pure integer function bar()
+ bar = 1
+ end function bar
+end module x