forked from OSchip/llvm-project
[flang] Removing two sentence error
Original-commit: flang-compiler/f18@fd5aafc5af Reviewed-on: https://github.com/flang-compiler/f18/pull/584 Tree-same-pre-rewrite: false
This commit is contained in:
parent
23b0337598
commit
7aaf74c1bc
|
@ -3691,9 +3691,7 @@ void DeclarationVisitor::CheckSaveStmts() {
|
|||
"'%s' appears as a COMMON block in a SAVE statement but not in"
|
||||
" a COMMON statement"_err_en_US);
|
||||
} else { // C1108
|
||||
Say(name,
|
||||
"'%s' specifier is not allowed in a BLOCK Construct."
|
||||
" It is a Common Block Name"_err_en_US);
|
||||
Say(name,"SAVE statement in BLOCK construct may not contain a common block name '%s'"_err_en_US);
|
||||
}
|
||||
} else {
|
||||
for (Symbol *object : symbol->get<CommonBlockDetails>().objects()) {
|
||||
|
|
|
@ -22,7 +22,7 @@ program main
|
|||
!ERROR: 'argmnt1' appears as a COMMON block in a SAVE statement but not in a COMMON statement
|
||||
save /argmnt1/
|
||||
block
|
||||
!ERROR: 'argmnt2' specifier is not allowed in a BLOCK Construct. It is a Common Block Name
|
||||
!ERROR: SAVE statement in BLOCK construct may not contain a common block name 'argmnt2'
|
||||
save /argmnt2/
|
||||
end block
|
||||
end program
|
||||
|
|
Loading…
Reference in New Issue