diff options
Diffstat (limited to 'src/shared/cplusplus')
-rw-r--r-- | src/shared/cplusplus/Symbols.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Symbols.cpp b/src/shared/cplusplus/Symbols.cpp index 10b82664c3..6bbf31e5b5 100644 --- a/src/shared/cplusplus/Symbols.cpp +++ b/src/shared/cplusplus/Symbols.cpp @@ -187,6 +187,11 @@ bool Function::isEqualTo(const Type *other) const const Function *o = other->asFunctionType(); if (! o) return false; + else if (isConst() != o->isConst()) + return false; + else if (isVolatile() != o->isVolatile()) + return false; + Name *l = identity(); Name *r = o->identity(); if (l == r || (l && l->isEqualTo(r))) { |