PR fortran/95587 - ICE in gfc_target_encode_expr, at fortran/target-memory.c:362
authorHarald Anlauf <anlauf@gmx.de>
Sat, 20 Jun 2020 14:05:13 +0000 (16:05 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 20 Jun 2020 14:05:13 +0000 (16:05 +0200)
commit5eb947601bdce59f2ff26694327ad173c51c2724
treeb2e96da9e07679e2f5c76d4a53e7bb2abb1fd0df
parent2c0069fafb53ccb7a45a6815025dfcbd2882a36e
PR fortran/95587 - ICE in gfc_target_encode_expr, at fortran/target-memory.c:362

EQUIVALENCE objects are subject to constraints listed in the Fortran 2018
standard, section 8.10.1.1.  These constraints are to be checked
also for CLASS variables.

gcc/fortran/
PR fortran/95587
* match.c (gfc_match_equivalence): Check constraints on
EQUIVALENCE objects also for CLASS variables.
gcc/fortran/match.c
gcc/testsuite/gfortran.dg/pr95587.f90 [new file with mode: 0644]