diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2012-06-08 11:52:45 +0200 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2012-06-11 09:14:59 +0200 |
commit | a66e344b424643fce71c127fdfb0a21103ca0171 (patch) | |
tree | 389c8a40f822a552d5fdc99aaf1d44a07acbf858 /src/libs/3rdparty/cplusplus/Bind.h | |
parent | ec5c280e21ea159287621ab564a14c74582588a5 (diff) |
C++: Fix crash on invalid class name
Task-number: QTCREATORBUG-7462
Change-Id: Ic1df4b535c5a617efa707110138c76e6e7ef1e4b
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Bind.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Bind.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/Bind.h b/src/libs/3rdparty/cplusplus/Bind.h index d1fff79ea5..de0cf12557 100644 --- a/src/libs/3rdparty/cplusplus/Bind.h +++ b/src/libs/3rdparty/cplusplus/Bind.h @@ -274,6 +274,8 @@ protected: private: static const int kMaxDepth; + void ensureValidClassName(const Name **name, unsigned sourceLocation); + Scope *_scope; ExpressionTy _expression; const Name *_name; |