[flang] Represent (parentheses around derived types)
authorpeter klausler <pklausler@nvidia.com>
Wed, 22 Sep 2021 23:49:09 +0000 (16:49 -0700)
committerpeter klausler <pklausler@nvidia.com>
Thu, 23 Sep 2021 20:03:13 +0000 (13:03 -0700)
commitf6ecea1a35758bbb504bc8d6f5dccf353ea1355b
treece8b5f3108f9272e1dc4718443cf8079a4c70e9e
parentfbaf36721783c3bcbd45f81294e6980eaef165e4
[flang] Represent (parentheses around derived types)

The strongly typed expression representation classes supported
a representation of parentheses only around intrinsic types
with specific kinds.  Parentheses around derived type variables
must also be preserved so that expressions may be distinguished
from variables; this distinction matters for actual arguments &
construct associations.

Differential Revision: https://reviews.llvm.org/D110355
flang/include/flang/Evaluate/expression.h
flang/lib/Evaluate/expression.cpp
flang/lib/Evaluate/tools.cpp
flang/test/Evaluate/expr01.f90 [new file with mode: 0644]