This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch obscure error in defined assignment
ClosedPublic

Authored by klausler on Jan 27 2023, 9:30 AM.

Details

Summary

A subroutine that implements a defined assignment cannot have
a dummy argument for its second operand (the RHS of the assignment)
with the POINTER or ALLOCATABLE attributes, since the RHS of
an assignment is always an expression. This problem is flagged
as a fatal error in other compilers, so let's make it fatal here
as well.

Diff Detail

Event Timeline

klausler created this revision.Jan 27 2023, 9:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2023, 9:30 AM
klausler requested review of this revision.Jan 27 2023, 9:30 AM
PeteSteinfeld accepted this revision.Jan 27 2023, 10:34 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jan 27 2023, 10:34 AM
This revision was automatically updated to reflect the committed changes.