-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang][hlfir] Do not dereference unallocated entities in structure c…
…onstructor. Component-by-component assignment must be able to handle unallocated allocatable values in structure constructor. F2018 7.5.10 p. 7 states that the component must have unallocated status as a result of such construction. The structure constructor temporary is initialized such that all the allocatable components are unallocated, so we just need to make sure not to do the component assignment if RHS is deallocated. Depends on D152482 (the same LIT test is affected) Reviewed By: jeanPerier, tblah Differential Revision: https://reviews.llvm.org/D152493
- Loading branch information
Showing
3 changed files
with
99 additions
and
42 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