Skip to content

[flang] Clear obsolete type from reallocated allocatable #139788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

klausler
Copy link
Contributor

When an assignment to a polymorphic allocatable changes its type to an intrinsic type, be sure to reset its descriptor's derived type pointer to null.

Fixes #136522.

When an assignment to a polymorphic allocatable changes its
type to an intrinsic type, be sure to reset its descriptor's
derived type pointer to null.

Fixes llvm#136522.
@eugeneepshteyn
Copy link
Contributor

No test?

@klausler
Copy link
Contributor Author

No test?

We're not really set up for end-to-end Fortran executable tests in the llvm-project repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Flang] Incorrect execution result of using polymorphic variable in select type construct
2 participants