2015-06-05 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66347
* resolve.c (apply_default_init_local): Do not dereference a NULL
pointer.
2015-06-05 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66347
* gfortran.dg/blockdata_9.f: New test.
From-SVN: r224175
+2015-06-05 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/66347
+ * resolve.c (apply_default_init_local): Do not dereference a NULL
+ pointer.
+
2015-06-05 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/66385
result variable, which are also nonstatic. */
if (sym->attr.save || sym->ns->save_all
|| (flag_max_stack_var_size == 0 && !sym->attr.result
- && !sym->ns->proc_name->attr.recursive
+ && (sym->ns->proc_name && !sym->ns->proc_name->attr.recursive)
&& (!sym->attr.dimension || !is_non_constant_shape_array (sym))))
{
/* Don't clobber an existing initializer! */
+2015-06-05 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/66347
+ * gfortran.dg/blockdata_9.f: New test.
+
2015-06-05 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/66385
--- /dev/null
+! { dg-do compile }
+! { dg-options "-fno-automatic -finit-local-zero" }
+! PR fortran/66347
+
+ block data
+ implicit none
+ integer i, n
+ parameter (n=1)
+ character*2 s1(n)
+ character*8 s2(n)
+ common /foo/ s1, s2
+ data (s1(i),s2(i),i=1,n)/"ab","12345678"/
+ end