-
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][hlfir] Fixed NULL() handling in structure constructor.
When an initializer value is missing for an allocatable component in a structure constructor, the RHS is NULL() expression. We should just skip this part of the initializer, since the component must become unallocated (as it is from the initialization). Runtime detected rank mismatch when we tried to pass NULL() box RHS for assigning it to the unallocated component of rank 1, 2, etc. Reviewed By: tblah Differential Revision: https://reviews.llvm.org/D154906
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
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