From 339cb434540d4fe3e67336dc319a3460950a2239 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Tue, 19 May 2009 12:15:30 +0200 Subject: Removed hidden function declarations from the overloaded function set. --- src/shared/cplusplus/Symbols.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/shared/cplusplus/Symbols.cpp') 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))) { -- cgit v1.2.1