Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Fix merging of use associated generics
When we use-associate a generic interface name and then add more procedures to the generic, we create a new symbol for the merged generic. That symbol has to include a pointer to the derived type or procedure with the same name, just as the original generic did. To achieve that, change `AddSpecificProcsFrom` to also copy those fields from the original symbol and change its name to `CopyFrom` to reflect its new purpose. Also, change it to take `GenericDetails` instead of `Symbol` as its argument so we can't call it on the wrong kind of symbol. Original-commit: flang-compiler/f18@1e22970 Reviewed-on: flang-compiler/f18#614
- Loading branch information
Showing
4 changed files
with
40 additions
and
9 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
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