We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b5e7a8 commit 47acfecCopy full SHA for 47acfec
flang/include/flang/Lower/Support/Utils.h
@@ -575,7 +575,11 @@ class IsEqualEvaluateExpr {
575
template <typename A>
576
static bool isEqual(const Fortran::evaluate::ArrayConstructor<A> &x,
577
const Fortran::evaluate::ArrayConstructor<A> &y) {
578
- return isEqual(x, y) && x.GetType() == y.GetType();
+ bool checkCharacterType = true;
579
+ if constexpr (A::category == Fortran::common::TypeCategory::Character) {
580
+ checkCharacterType = x.LEN() == y.LEN();
581
+ }
582
+ return isEqual(x, y) && x.GetType() == y.GetType() && checkCharacterType;
583
}
584
static bool isEqual(const Fortran::evaluate::ImpliedDoIndex &x,
585
const Fortran::evaluate::ImpliedDoIndex &y) {
0 commit comments