This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Questions about the gfortran test suite
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- Cc: Dominique Dhumieres <dominiq at lps dot ens dot fr>, fortran at gcc dot gnu dot org, patch <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 27 Dec 2005 13:47:49 +0100
- Subject: Re: Questions about the gfortran test suite
- References: <43B10926.mailF7N1W277T@tournesol.lps.ens.fr> <43B137BA.1070801@physik.uni-muenchen.de>
(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;
>
>
>