Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Fix error in characteristics check at procedure pointer assig…
…nment If the procedure pointer has an explicit interface, its characteristics must equal the characteristics of its target, except that the target may be pure or elemental also when the pointer is not (cf. F2018 10.2.2.4(3)). In the semantics check for assignment of procedure pointers, the attributes of the procedures were not checked correctly due to a typo. This caused some illegal pointer-target-combinations to pass without raising an error. Fix this, and expand the test case to improve the coverage of procedure pointer assignment checks. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D113368
- Loading branch information
Showing
2 changed files
with
102 additions
and
16 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