]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Mon, 22 Jun 2020 19:27:31 +0000 (21:27 +0200)
commitc00ca04ba7e46d2d59e5a4f95ee7121cdc4ba224
tree493e30b23c90358ac360d65f5a30de178d772f2c
parent2c7ae01349f779f1d4e66d8831052ee59f9c948b
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.

(cherry picked from commit 5eb947601bdce59f2ff26694327ad173c51c2724)
gcc/fortran/match.c
gcc/testsuite/gfortran.dg/pr95587.f90 [new file with mode: 0644]