aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorMark Eggleston <markeggleston@gcc.gnu.org>2020-06-23 11:01:28 +0100
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:15:41 -0300
commita93c588cb1c61fb8aaca3ce740e28bbe91012faf (patch)
tree788391e0955fefd2b130e8f30a8fdb2c138efef8 /gcc/fortran
parent3fdccd4e799255ba3912583c9c23e76b01754c9d (diff)
downloadgcc-a93c588cb1c61fb8aaca3ce740e28bbe91012faf.zip
gcc-a93c588cb1c61fb8aaca3ce740e28bbe91012faf.tar.gz
gcc-a93c588cb1c61fb8aaca3ce740e28bbe91012faf.tar.bz2
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.
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index f38def4..e16b96f 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -4128,7 +4128,7 @@ gfc_match_decl_type_spec (gfc_typespec *ts, int implicit_flag)
gfc_gobble_whitespace ();
if (gfc_peek_ascii_char () == '*')
{
- if ((m = gfc_match ("*)")) != MATCH_YES)
+ if ((m = gfc_match ("* ) ")) != MATCH_YES)
return m;
if (gfc_comp_struct (gfc_current_state ()))
{