C++: Fix crash when deducing auto (with invalid ids)

Task-number: QTCREATORBUG-7801

Change-Id: I61436148ed1428a50a6840ba9109310a57dabaa4
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Leandro Melo
2012-09-04 15:21:03 +02:00
parent 8ba422d07c
commit 6750a1c829
6 changed files with 54 additions and 28 deletions

View File

@@ -88,7 +88,9 @@ static void path_helper(Symbol *symbol, QList<const Name *> *names)
}
}
static bool compareName(const Name *name, const Name *other)
namespace CPlusPlus {
bool compareName(const Name *name, const Name *other)
{
if (name == other)
return true;
@@ -104,8 +106,6 @@ static bool compareName(const Name *name, const Name *other)
return false;
}
namespace CPlusPlus {
bool compareFullyQualifiedName(const QList<const Name *> &path, const QList<const Name *> &other)
{
if (path.length() != other.length())