This is an archive of the discontinued LLVM Phabricator instance.

[flang] add nested DEC STRUCTURE in DerivedTypeDetails component names
ClosedPublic

Authored by jeanPerier on Jun 30 2023, 6:37 AM.

Details

Summary

Currently, when a (legacy) DEC structure contained other DEC structure
declarations, the related component names were not added to the
containing DerivedTypeDetails component_names. This lead to bugs in
later phase when visiting the components (like in when lowering the
type to FIR/MLIR).

When an EntityDecl is visited and the scope is a DEC structure, add
the entity to the component names of this DEC structure.

Diff Detail

Event Timeline

jeanPerier created this revision.Jun 30 2023, 6:37 AM
jeanPerier requested review of this revision.Jun 30 2023, 6:37 AM
PeteSteinfeld accepted this revision.Jun 30 2023, 7:17 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jun 30 2023, 7:17 AM