re PR fortran/83874 (ICE initializing character array from derived type)
authorHarald Anlauf <anlauf@gmx.de>
Wed, 17 Jan 2018 23:50:02 +0000 (23:50 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Wed, 17 Jan 2018 23:50:02 +0000 (23:50 +0000)
commitc004a3413e7acc17ec620b8263ccc06922f7d61b
tree3814ca51281a66a8a307dbbad3f8be22add2f6cf
parentcfb14840b842698f12ad82ab42ed4b8445af8992
re PR fortran/83874 (ICE initializing character array from derived type)

2018-01-17  Harald Anlauf  <anlauf@gmx.de>

PR fortran/83874
* decl.c (add_init_expr_to_sym): Do not dereference NULL pointer.

2018-01-17  Harald Anlauf  <anlauf@gmx.de>

PR fortran/83874
* gfortran.dg/pr83874.f90: New test.

From-SVN: r256824
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr83874.f90 [new file with mode: 0644]