Fortran : Bogus error with additional blanks in type(*) PR95829
authorMark Eggleston <markeggleston@gcc.gnu.org>
Tue, 23 Jun 2020 10:01:28 +0000 (11:01 +0100)
committerMark Eggleston <markeggleston@gcc.gnu.org>
Wed, 1 Jul 2020 09:14:06 +0000 (10:14 +0100)
commit624e60f080989fa57756575a0bb47a97748b52b8
treed60537fb30ed3744697ca2e0b2e670991ff6b114
parent2f3fd53220b74d834d300e0b7aa99eca039ffbea
Fortran  : Bogus error with additional blanks in type(*) PR95829

Checking for "* ) " instead of "*)" clears the bogus error.

2020-07-01  Steven G. Kargl  <kargl@gcc.gnu.org>

gcc/fortran/

PR fortran/95829
* decl.c (gfc_match_decl_type_spec): Compare with "* ) " instead
of "*)".

2020-07-01  Mark Eggleston  <markeggleston@gcc.gnu.org>

gcc/testsuite/

PR fortran/95829
* gfortran.dg/pr95829.f90: New test.
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr95829.f90 [new file with mode: 0644]