aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/expr.c
diff options
context:
space:
mode:
authorMark Eggleston <markeggleston@gcc.gnu.org>2020-02-18 14:15:41 +0000
committerMark Eggleston <markeggleston@gcc.gnu.org>2020-02-18 14:15:41 +0000
commit23d3f25c87d307536f7e0f15e211968a87657602 (patch)
treef1a38ab5169c3ccb426df0042d1b9e2b8000a93a /gcc/fortran/expr.c
parent08afe87b7976e93197a66e01f93191ead496ad42 (diff)
downloadgcc-23d3f25c87d307536f7e0f15e211968a87657602.zip
gcc-23d3f25c87d307536f7e0f15e211968a87657602.tar.gz
gcc-23d3f25c87d307536f7e0f15e211968a87657602.tar.bz2
[Fortran] ICE: Invalid expression in gfc_element_size PR93601
ICE occurs when assigning a BOZ constant to an class(*) variable with the allocatable attribute. Use of BOZ constants outside data statements and int/real/dble/cmplx intrinsics is not allowed. Original patch provided by Steven G. Kargl <kargl@gcc.gnu.org>. gcc/fortran/ChangeLog PR fortran/93601 * match.c (gfc_match_assignment) : Reject assignment if the lhs stype is BT_CLASS and the rhs type is BT_BOZ. gcc/testsuite/ChangeLog PR fortran/93601 * gfortran.dg/pr93601.f90 : New test.
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions