]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/34722 (ICE: left-over "@iostat" variable polutes namespace)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 12 Jan 2008 08:35:25 +0000 (08:35 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 12 Jan 2008 08:35:25 +0000 (08:35 +0000)
2008-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/34722
* match.c (gfc_match_name): Don't error if leading character is a '(',
just return MATCH_NO.

From-SVN: r131487

gcc/fortran/ChangeLog
gcc/fortran/match.c

index 1874ff9345e79fa676c4829aba97b84094c29d31..f13ce492650e69a680bbf9443fae1b881718dff2 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/34722
+       * match.c (gfc_match_name): Don't error if leading character is a '(',
+       just return MATCH_NO.
+
 2008-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR fortran/34722
index 9a9ed8a41cb40c9807796fc8f5f79c8f6236ed8a..ad636f93f3d6709e8a25a65e4914251f2dce7589 100644 (file)
@@ -496,7 +496,7 @@ gfc_match_name (char *buffer)
   c = gfc_next_char ();
   if (!(ISALPHA (c) || (c == '_' && gfc_option.flag_allow_leading_underscore)))
     {
-      if (gfc_error_flag_test() == 0)
+      if (gfc_error_flag_test() == 0 && c != '(')
        gfc_error ("Invalid character in name at %C");
       gfc_current_locus = old_loc;
       return MATCH_NO;