diff options
author | Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> | 2005-11-01 22:55:02 +0100 |
---|---|---|
committer | Tobias Schlüter <tobi@gcc.gnu.org> | 2005-11-01 22:55:02 +0100 |
commit | 0be8cb80ee8062154c853a2ea87fe01c287f91f6 (patch) | |
tree | 4335caee281df02cc8c23623c35e266e0f85e8f3 /gcc/fortran/decl.c | |
parent | 6a8697062cd7b29a9bb17b5d4af09035e143a23d (diff) | |
download | gcc-0be8cb80ee8062154c853a2ea87fe01c287f91f6.zip gcc-0be8cb80ee8062154c853a2ea87fe01c287f91f6.tar.gz gcc-0be8cb80ee8062154c853a2ea87fe01c287f91f6.tar.bz2 |
re PR fortran/24008 (gfortran too permissive about ENTRY syntax)
fortran/
PR fortran/24008
* decl.c (gfc_match_entry): Function entries need an argument list.
testsuite/
PR fortran/24008
* gfortran.dg/entry_5.f90: New.
* gfortran.fortran-torture/execute/entry_9.f90: Fix syntax error.
From-SVN: r106358
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 7516057..74aa684 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -2691,7 +2691,7 @@ gfc_match_entry (void) else { /* An entry in a function. */ - m = gfc_match_formal_arglist (entry, 0, 1); + m = gfc_match_formal_arglist (entry, 0, 0); if (m != MATCH_YES) return MATCH_ERROR; |