[Bug fortran/82275] gfortran rejects valid & accepts invalid reference to dimension-remapped type SELECT TYPE selector
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun May 20 11:04:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82275
--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun May 20 11:04:14 2018
New Revision: 260417
URL: https://gcc.gnu.org/viewcvs?rev=260417&root=gcc&view=rev
Log:
2018-05-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/82275
Backport from trunk
* match.c (gfc_match_type_spec): Go through the array ref and
decrement 'rank' for every dimension that is an element.
2018-05-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/82275
Backport from trunk
* gfortran.dg/select_type_42.f90: New test.
Added:
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/select_type_42.f90
Modified:
branches/gcc-8-branch/gcc/fortran/ChangeLog
branches/gcc-8-branch/gcc/fortran/match.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list