This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix bug resolving type in type definition
ClosedPublic

Authored by tskeith on Jun 9 2020, 11:32 AM.

Details

Summary

When we encountered a type name in a derived type definition, we were
sometimes finding a component of that name rather than the type from
the enclosing scope. Fix this by introducing NonDerivedTypeScope() to
start the search in the right scope.

Diff Detail

Event Timeline

tskeith created this revision.Jun 9 2020, 11:32 AM
Herald added a project: Restricted Project. · View Herald Transcript
tskeith added a project: Restricted Project.
klausler accepted this revision.Jun 9 2020, 12:01 PM
This revision is now accepted and ready to land.Jun 9 2020, 12:01 PM
PeteSteinfeld accepted this revision.Jun 9 2020, 12:36 PM

Looks good to me.

tskeith updated this revision to Diff 269651.Jun 9 2020, 1:18 PM
  • Add test with type parameters
This revision was automatically updated to reflect the committed changes.