diff --git a/flang/lib/Semantics/check-call.cpp b/flang/lib/Semantics/check-call.cpp index 1bd0b0ab6f080..996cdf298d851 100644 --- a/flang/lib/Semantics/check-call.cpp +++ b/flang/lib/Semantics/check-call.cpp @@ -548,7 +548,7 @@ static void CheckProcedureArg(evaluate::ActualArgument &arg, messages.Say( "Actual procedure argument has an implicit interface " "which is not known to be compatible with %s which has an " - "explcit interface"_err_en_US, + "explicit interface"_err_en_US, dummyName); return; } diff --git a/flang/test/Semantics/call09.f90 b/flang/test/Semantics/call09.f90 index 36aaa8f4ab46a..9db5887dc4e79 100644 --- a/flang/test/Semantics/call09.f90 +++ b/flang/test/Semantics/call09.f90 @@ -78,7 +78,7 @@ subroutine test1 ! 15.5.2.9(5) call s01(null(intPtr)) !ERROR: Actual argument associated with procedure dummy argument 'p=' is not a procedure call s01(B"0101") - !ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explcit interface + !ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explicit interface call s01(extfunc) !ERROR: Actual argument associated with procedure pointer dummy argument 'p=' must be a POINTER unless INTENT(IN) call s02(realfunc) @@ -93,9 +93,9 @@ subroutine test1 ! 15.5.2.9(5) call s02(null(p)) !ERROR: Actual argument associated with procedure pointer dummy argument 'p=' must be a POINTER unless INTENT(IN) call s02(sin) - !ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explcit interface + !ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explicit interface call s02(extfunc) - !ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explcit interface + !ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explicit interface call s03(extfuncPtr) end subroutine