Fix error message.
authorThomas König <tkoenig@gcc.gnu.org>
Sun, 23 Feb 2020 16:04:06 +0000 (17:04 +0100)
committerThomas König <tkoenig@gcc.gnu.org>
Sun, 23 Feb 2020 16:09:01 +0000 (17:09 +0100)
2020-02-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/93890
* interface.c: Replace "can not" by "cannot" and remove trailing
space.

2020-02-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/93890
* gfortran.dg/argument_checking_24.f90: Correct test case.

gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/argument_checking_24.f90

index 6795b82..5f889fb 100644 (file)
@@ -1,3 +1,9 @@
+2020-02-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/93890
+       * interface.c: Replace "can not" by "cannot" and remove trailing
+       space.
+
 2020-02-20  Tobias Burnus  <tobias@codesourcery.com>
 
        PR fortran/93825
index 429abc7..4106fe5 100644 (file)
@@ -2660,8 +2660,8 @@ compare_parameter (gfc_symbol *formal, gfc_expr *actual,
        {
          if (formal->attr.artificial)
            gfc_error ("Element of assumed-shape or pointer array "
-                      "as actual argument at %L can not correspond to "
-                      "actual argument at %L ",
+                      "as actual argument at %L cannot correspond to "
+                      "actual argument at %L",
                       &actual->where, &formal->declared_at);
          else
            gfc_error ("Element of assumed-shape or pointer "
index fe93624..06d61c7 100644 (file)
@@ -1,3 +1,8 @@
+2020-02-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/93890
+       * gfortran.dg/argument_checking_24.f90: Correct test case.
+
 2020-02-21  Martin Sebor  <msebor@redhat.com>
 
        PR gcov-profile/93753
index a5f3abe..79096cd 100644 (file)
@@ -33,14 +33,14 @@ contains
     call invalid_4 (b) ! { dg-error "Rank mismatch" }w
     call invalid_5 (b) ! { dg-error "Rank mismatch" }
     call invalid_5 (vv(1)%x) ! { dg-error "Rank mismatch" }
-    call invalid_6 (x) ! { dg-error "can not correspond to actual argument" }
-    call invalid_6 (pointer_v%x(1)) ! { dg-error "can not correspond to actual argument" }
+    call invalid_6 (x) ! { dg-error "cannot correspond to actual argument" }
+    call invalid_6 (pointer_v%x(1)) ! { dg-error "cannot correspond to actual argument" }
     call invalid_7 (pointer_v%x(1)) ! { dg-error "Rank mismatch" }
     call invalid_7 (x) ! { dg-error "Rank mismatch" }
     call invalid_8 (p(1)) ! { dg-error "Rank mismatch" }
     call invalid_8 (x) ! { dg-error "Rank mismatch" }
-    call invalid_9 (x) ! { dg-error "can not correspond to actual argument" }
-    call invalid_9 (p(1)) ! { dg-error "can not correspond to actual argument" }
+    call invalid_9 (x) ! { dg-error "cannot correspond to actual argument" }
+    call invalid_9 (p(1)) ! { dg-error "cannot correspond to actual argument" }
   end subroutine foo
 
   subroutine bar(a, alloc)