re PR fortran/51993 (Erroneous type component initialization leads to internal compil...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 30 Oct 2015 18:13:50 +0000 (18:13 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 30 Oct 2015 18:13:50 +0000 (18:13 +0000)
commit834e9dbb3999af9b49ba168c7e870f484504d35f
treeca6fbe301daf557bc0ab0a08fb279eecde400ca6
parent99a04f4fc55931d920a27b0efb61fc46eb96a628
re PR fortran/51993 (Erroneous type component initialization leads to internal compiler error)

2015-10-15  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/51993
* decl.c (gfc_set_constant_character_len): Convert gcc_assert into an
if-statement causing an early return leads to valid error message.

2015-10-15  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/51993
* gfortran.dg/pr51993.f90: New test.

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