Skip to content

Commit 02e174e

Browse files
committed
[flang] Fix typo in error message
The title says it all. Differential Revision: https://reviews.llvm.org/D95233
1 parent 86991d3 commit 02e174e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flang/lib/Semantics/check-call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ static void CheckProcedureArg(evaluate::ActualArgument &arg,
548548
messages.Say(
549549
"Actual procedure argument has an implicit interface "
550550
"which is not known to be compatible with %s which has an "
551-
"explcit interface"_err_en_US,
551+
"explicit interface"_err_en_US,
552552
dummyName);
553553
return;
554554
}

flang/test/Semantics/call09.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ subroutine test1 ! 15.5.2.9(5)
7878
call s01(null(intPtr))
7979
!ERROR: Actual argument associated with procedure dummy argument 'p=' is not a procedure
8080
call s01(B"0101")
81-
!ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explcit interface
81+
!ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explicit interface
8282
call s01(extfunc)
8383
!ERROR: Actual argument associated with procedure pointer dummy argument 'p=' must be a POINTER unless INTENT(IN)
8484
call s02(realfunc)
@@ -93,9 +93,9 @@ subroutine test1 ! 15.5.2.9(5)
9393
call s02(null(p))
9494
!ERROR: Actual argument associated with procedure pointer dummy argument 'p=' must be a POINTER unless INTENT(IN)
9595
call s02(sin)
96-
!ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explcit interface
96+
!ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explicit interface
9797
call s02(extfunc)
98-
!ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explcit interface
98+
!ERROR: Actual procedure argument has an implicit interface which is not known to be compatible with dummy argument 'p=' which has an explicit interface
9999
call s03(extfuncPtr)
100100
end subroutine
101101

0 commit comments

Comments
 (0)