Fortran: ICE in gfc_code2string PR93792
authorSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 5 Mar 2020 11:41:14 +0000 (11:41 +0000)
committerMark Eggleston <markeggleston@gcc.gnu.org>
Thu, 5 Mar 2020 11:41:14 +0000 (11:41 +0000)
commita2ec7c4aafbcd517eb563f1df32eedf39b27141b
tree861470c13c40f2394d6d9233b88b33cd18a3e664
parent43031fbdda7d4edbd607365a4f3bbec069fe3983
Fortran: ICE in gfc_code2string PR93792

A BOZ constant can not appear as a component inialiser for a derived
type.

gcc/fortran/ChangeLog:

PR93792
* decl.c (variable_decl): If param and initializer check
for BOZ, if found,  output an error, set m to MATCH_ERROR
and goto cleanup.

gcc/testsuite/ChangeLog:

PR93792
* gfortran.dg/pr93792.f90:  New test.
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr93792.f90 [new file with mode: 0644]