diff options
author | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2021-10-31 17:44:45 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2021-11-05 22:09:48 +0100 |
commit | 1727bb533ede295a3ef2dd494225d27b6d1746aa (patch) | |
tree | 08756267680b9488af9104576c2d3c327adc8a34 /gcc/fortran/decl.c | |
parent | c64ca0e7bbe193b95f50b0d3daf9ff7b710d6c6b (diff) | |
download | gcc-1727bb533ede295a3ef2dd494225d27b6d1746aa.zip gcc-1727bb533ede295a3ef2dd494225d27b6d1746aa.tar.gz gcc-1727bb533ede295a3ef2dd494225d27b6d1746aa.tar.bz2 |
Fortran: Missing error with IMPLICIT none (external) [PR100972]
gcc/fortran/ChangeLog:
PR fortran/100972
* decl.c (gfc_match_implicit_none): Fix typo in warning.
* resolve.c (resolve_unknown_f): Reject external procedures
without explicit EXTERNAL attribute whe IMPLICIT none (external)
is in effect.
gcc/testsuite/ChangeLog:
PR fortran/100972
* gfortran.dg/implicit_14.f90: Adjust error.
* gfortran.dg/external_implicit_none_3.f08: New test.
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 e9e23fe..ab88ab5 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -4715,7 +4715,7 @@ gfc_match_implicit_none (void) if (c == '(') { (void) gfc_next_ascii_char (); - if (!gfc_notify_std (GFC_STD_F2018, "IMPORT NONE with spec list at %C")) + if (!gfc_notify_std (GFC_STD_F2018, "IMPLICIT NONE with spec list at %C")) return MATCH_ERROR; gfc_gobble_whitespace (); |