2017_12_27 Louis Krupp <louis.krupp@zoho.com>
authorLouis Krupp <louis.krupp@zoho.com>
Wed, 27 Dec 2017 19:20:12 +0000 (19:20 +0000)
committerLouis Krupp <lkrupp@gcc.gnu.org>
Wed, 27 Dec 2017 19:20:12 +0000 (19:20 +0000)
commitaefd636b3cc00e1aa37537f9fa3a8381883a1d19
tree9ab9aa114277ba50463637b6940bf80217960a8a
parent467e6f1bb18878c330e1dc88888b133e85524c46
2017_12_27  Louis Krupp  <louis.krupp@zoho.com>

PR fortran/83092
* expr.c (gfc_apply_init): Check that typespec has character type
before using character length field.

2017_12_27  Louis Krupp  <louis.krupp@zoho.com>

PR fortran/83092
* gfortran.dg/init_char_with_nonchar_ctr.f90: New test.

From-SVN: r256011
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/init_char_with_nonchar_ctr.f90 [new file with mode: 0644]