[flang] Fixed comparison for derived types constants.
authorSlava Zakharin <szakharin@nvidia.com>
Tue, 16 May 2023 04:10:18 +0000 (21:10 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Tue, 16 May 2023 16:51:09 +0000 (09:51 -0700)
commite47fbb7cd2d22b787d1022fd2f3bef4a051d67c8
tree389fc882117d77a92c286740ab2ac5cb2e1a9ca5
parent76941b68ecd9a1f9ca337774b4082c2ca7577450
[flang] Fixed comparison for derived types constants.

The two constants should be equal only if their derived types
are the same. This fixes regression caused by D150380.

Differential Revision: https://reviews.llvm.org/D150634
flang/include/flang/Evaluate/constant.h
flang/lib/Evaluate/constant.cpp
flang/test/Lower/constant-literal-mangling.f90