This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Questions about the gfortran test suite


(Forgot to CC gcc-patches@)

Tobias Schlüter wrote:
> Built and tested on i686-pc-linux, ok?  I also have a set of changes to the
> testsuite made necessary by this, together with a new testcase.
> 
> - Tobi
> 
> 2005-12-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
> 
> 	* decl.c (gfc_match_function_decl): Correctly error out in case of
> 	omitted function argument list.
> 
> Index: decl.c
> ===================================================================
> --- decl.c      (revision 109079)
> +++ decl.c      (working copy)
> @@ -2548,7 +2548,12 @@ gfc_match_function_decl (void)
> 
>    m = gfc_match_formal_arglist (sym, 0, 0);
>    if (m == MATCH_NO)
> -    gfc_error ("Expected formal argument list in function definition at %C");
> +    {
> +      gfc_error ("Expected formal argument list in function "
> +                "definition at %C");
> +      m = MATCH_ERROR;
> +      goto cleanup;
> +    }
>    else if (m == MATCH_ERROR)
>      goto cleanup;
> 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]