Steve Kargl wrote:
The following patch avoids the dereferencing of
a null pointer, which led to an ICE. The patch
here is a slight variation on the patch submitted
by drikosev at otenet dot gr. The testcase is a
slight variation on the code submitted by FX.
Built and regression tested on x86_64-*-freebsd.
OK to commit?
OK. However, could you additionally add "if (len(s) /= 5) call abort" to
the test, just to make sure. (It works, I tried it :-)
Thanks for the patch!
Tobias
2015-03-27 Steven G. Kargl <ka...@gcc.gnu.org>
PR fortran/65429
* decl.c (add_init_expr_to_sym): Do not dereference a null pointer.
2015-03-27 Steven G. Kargl <ka...@gcc.gnu.org>
PR fortran/65429
* pr65429.f90: New test.