Commit d468bcdb by Jerry DeLisle

re PR fortran/32644 ("CHARACTER*1, c" produces "Unclassifiable statement")

2007-07-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/32644
	* decl.c (match_attr_spec): Don't return MATCH_ERROR if comma found and
	gfc_match_bind_c does not return MATCH_YES.

From-SVN: r126450
parent b71b4522
2007-07-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/32644
* decl.c (match_attr_spec): Don't return MATCH_ERROR if comma found and
gfc_match_bind_c does not return MATCH_YES.
2007-07-07 Kazu Hirata <kazu@codesourcery.com> 2007-07-07 Kazu Hirata <kazu@codesourcery.com>
* decl.c, gfortran.h, interface.c, module.c, resolve.c, * decl.c, gfortran.h, interface.c, module.c, resolve.c,
......
...@@ -2507,15 +2507,11 @@ match_attr_spec (void) ...@@ -2507,15 +2507,11 @@ match_attr_spec (void)
/* Chomp the comma. */ /* Chomp the comma. */
peek_char = gfc_next_char (); peek_char = gfc_next_char ();
/* Try and match the bind(c). */ /* Try and match the bind(c). */
if (gfc_match_bind_c (NULL) == MATCH_YES) if (gfc_match_bind_c (NULL) == MATCH_YES)
d = DECL_IS_BIND_C; d = DECL_IS_BIND_C;
else
{
return MATCH_ERROR;
}
} }
} }
if (d == DECL_NONE || d == DECL_COLON) if (d == DECL_NONE || d == DECL_COLON)
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment