Skip to content

Commit

Permalink
[flang] review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
klausler committed Jul 16, 2019
1 parent 40fb469 commit 2f49dde
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion flang/lib/semantics/resolve-names.cc
Expand Up @@ -3941,7 +3941,7 @@ void DeclarationVisitor::CheckExplicitInterface(Symbol &symbol) {
const Symbol *subp{FindSubprogram(*interface)};
if (subp == nullptr || !subp->HasExplicitInterface()) {
Say(symbol.name(),
"The interface of '%s' (%s) is not an abstract interface or a "
"The interface of '%s' ('%s') is not an abstract interface or a "
"procedure with an explicit interface"_err_en_US,
symbol.name(), interface->name());
context().SetError(symbol);
Expand Down
12 changes: 6 additions & 6 deletions flang/test/semantics/resolve20.f90
Expand Up @@ -22,20 +22,20 @@ subroutine foo
procedure(integer) :: b
procedure(foo) :: c
procedure(bar) :: d
!ERROR: The interface of 'e' (missing) is not an abstract interface or a procedure with an explicit interface
!ERROR: The interface of 'e' ('missing') is not an abstract interface or a procedure with an explicit interface
procedure(missing) :: e
!ERROR: The interface of 'f' (b) is not an abstract interface or a procedure with an explicit interface
!ERROR: The interface of 'f' ('b') is not an abstract interface or a procedure with an explicit interface
procedure(b) :: f
procedure(c) :: g
external :: h
!ERROR: The interface of 'i' (h) is not an abstract interface or a procedure with an explicit interface
!ERROR: The interface of 'i' ('h') is not an abstract interface or a procedure with an explicit interface
procedure(h) :: i
procedure(forward) :: j
!ERROR: The interface of 'k1' (bad1) is not an abstract interface or a procedure with an explicit interface
!ERROR: The interface of 'k1' ('bad1') is not an abstract interface or a procedure with an explicit interface
procedure(bad1) :: k1
!ERROR: The interface of 'k2' (bad2) is not an abstract interface or a procedure with an explicit interface
!ERROR: The interface of 'k2' ('bad2') is not an abstract interface or a procedure with an explicit interface
procedure(bad2) :: k2
!ERROR: The interface of 'k3' (bad3) is not an abstract interface or a procedure with an explicit interface
!ERROR: The interface of 'k3' ('bad3') is not an abstract interface or a procedure with an explicit interface
procedure(bad3) :: k3

abstract interface
Expand Down
2 changes: 1 addition & 1 deletion flang/test/semantics/resolve32.f90
Expand Up @@ -57,7 +57,7 @@ subroutine foo
procedure(foo), nopass, deferred :: f
!ERROR: DEFERRED is required when an interface-name is provided
procedure(foo), nopass :: g
!ERROR: The interface of 'h' (bar) is not an abstract interface or a procedure with an explicit interface
!ERROR: The interface of 'h' ('bar') is not an abstract interface or a procedure with an explicit interface
procedure(bar), nopass, deferred :: h
end type
type t2
Expand Down

0 comments on commit 2f49dde

Please sign in to comment.