diff options
Diffstat (limited to 'flang/include/flang/Evaluate/constant.h')
-rw-r--r-- | flang/include/flang/Evaluate/constant.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/flang/include/flang/Evaluate/constant.h b/flang/include/flang/Evaluate/constant.h index 46c2f59f1553..611ee7772d2a 100644 --- a/flang/include/flang/Evaluate/constant.h +++ b/flang/include/flang/Evaluate/constant.h @@ -165,7 +165,8 @@ public: ~Constant(); bool operator==(const Constant &that) const { - return shape() == that.shape() && values_ == that.values_; + return LEN() == that.LEN() && shape() == that.shape() && + values_ == that.values_; } bool empty() const; std::size_t size() const; |