-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Downgrade benign error message to a warning
It's not conforming to specify the SAVE attribute more than once for a variable, but it also doesn't hurt anything and isn't fatal in other Fortran compilers. Downgrade the message to a warning for better portability. Differential Revision: https://reviews.llvm.org/D117153
- Loading branch information
Showing
4 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
! RUN: %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s | ||
! Check warning on multiple SAVE attribute specifications | ||
subroutine saves | ||
save x | ||
save y | ||
!CHECK: SAVE attribute was already specified on 'y' | ||
integer, save :: y | ||
integer, save :: z | ||
!CHECK: SAVE attribute was already specified on 'x' | ||
!CHECK: SAVE attribute was already specified on 'z' | ||
save x,z | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters