[Fortran] ICE in gfc_typenode_for_spec PR93603
authorMark Eggleston <markeggleston@gcc.gnu.org>
Tue, 18 Feb 2020 12:23:20 +0000 (12:23 +0000)
committerMark Eggleston <markeggleston@gcc.gnu.org>
Tue, 18 Feb 2020 12:23:20 +0000 (12:23 +0000)
commit8f55a0eec910dd02992f4caca083048d91c0b2e1
treee8bcd79b1f67c14dcd1fff84144bac2a672d359a
parentd4c10c9f4bff616e7ed07e92504fe31a700e2af1
[Fortran] ICE in gfc_typenode_for_spec PR93603

Associating a symbol with a BOZ constant caused an ICE.  Output
an error message as an association target cannot be a BOZ
constant.

Original patch provided by Steven G. Kargl  <kargl@gcc.gnu.org>.

gcc/fortran/ChangeLog

PR fortran/93603
* match.c (gfc_match_associate) : If target expression
has the type BT_BOZ output an error and goto
assocListError.

gcc/testsuite/ChangeLog

PR fortran/93603
* gfortran.dg/pr93603.f90 : New test.
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr93603.f90 [new file with mode: 0644]