-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Assume unknown target of procedure pointer assignment is a pr… (
#66232) …ocedure When an previously unknown name appears as the target of an assignment to a known procedure pointer, create an external symbol for it rather than an implicitly-typed object symbol.
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
! RUN: %python %S/test_symbols.py %s %flang_fc1 | ||
!DEF: /MainProgram1/pptr EXTERNAL, POINTER ProcEntity | ||
procedure(), pointer :: pptr | ||
!REF: /MainProgram1/pptr | ||
!DEF: /mustbeexternal EXTERNAL ProcEntity | ||
pptr => mustbeexternal | ||
end program |