Page MenuHomePhabricator

[flang] Check for calling a type parameter as a function
AbandonedPublic

Authored by PeteSteinfeld on Jun 7 2021, 11:27 AM.

Details

Summary

It's possible to refer to type type parameter of a derived type as a function.
We were not detecting this situation and emitting an error message. I added
the necessary check along with a test.

Diff Detail

Event Timeline

PeteSteinfeld requested review of this revision.Jun 7 2021, 11:27 AM
PeteSteinfeld created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2021, 11:27 AM
PeteSteinfeld added a project: Restricted Project.
klausler added inline comments.Jun 7 2021, 12:04 PM
flang/lib/Semantics/expression.cpp
2743

This may not be the right place to fix. Want me to take a look at this?

PeteSteinfeld added inline comments.Jun 7 2021, 12:37 PM
flang/lib/Semantics/expression.cpp
2743

Go for it.

Can this review now be closed?

PeteSteinfeld abandoned this revision.Sep 8 2021, 10:11 AM

Fixed elsewhere.