https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96325
--- Comment #23 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:316aa7ad19cd5b2dacba61bd7cc930449108abe5 commit r10-9231-g316aa7ad19cd5b2dacba61bd7cc930449108abe5 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Sun Aug 2 10:35:36 2020 +0100 This patch fixes PR96325. See the explanatory comment in the testcase. 2020-08-02 Paul Thomas <pa...@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. (cherry picked from commit e41da82345fb01c4c2641c979a94a975d15312ab)