2018-12-19 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/87992
* resolve.c (resolve_fl_variable): Avoid a NULL pointer.
2018-12-19 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/87992
* gfortran.dg/pr87992.f90: New test.
From-SVN: r267288
+2018-12-19 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/87992
+ * resolve.c (resolve_fl_variable): Avoid a NULL pointer.
+
2018-12-16 Steven G. Kargl <kargl@gcc.gnu.org>
* resolve.c (resolve_transfer): Remove dead code.
{
/* Make sure that character string variables with assumed length are
dummy arguments. */
- e = sym->ts.u.cl->length;
+ if (sym->ts.u.cl)
+ e = sym->ts.u.cl->length;
+ else
+ return false;
+
if (e == NULL && !sym->attr.dummy && !sym->attr.result
&& !sym->ts.deferred && !sym->attr.select_type_temporary
&& !sym->attr.omp_udr_artificial_var)
+2018-12-19 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/87992
+ * gfortran.dg/pr87992.f90: New test.
+
2018-12-19 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/avx512dq-pr82855.c: Update scan-assembler pattern.
--- /dev/null
+! { dg-do compile }
+subroutine s(x)
+ class(*), allocatable :: x
+ x = ''
+end