This patch fixes PR96325. See the explanatory comment in the testcase.
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 2 Aug 2020 09:35:36 +0000 (10:35 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 2 Aug 2020 09:35:36 +0000 (10:35 +0100)
commite41da82345fb01c4c2641c979a94a975d15312ab
tree30cf62ec607106472e2eb2c9a21735b1894fd13f
parent4967ca2f8b2e13324258786a90c46f62abce2b7d
This patch fixes PR96325. See the explanatory comment in the testcase.

2020-08-02  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/96325
* primary.c (gfc_match_varspec): In the case that a component
reference is added to an intrinsic type component, emit the
error message in this function.

gcc/testsuite/
PR fortran/96325
* gfortran.dg/pr96325.f90: New test.
* gfortran.dg/pr91589.f90: Update error message.
gcc/fortran/primary.c
gcc/testsuite/gfortran.dg/pr91589.f90
gcc/testsuite/gfortran.dg/pr96325.f90 [new file with mode: 0644]