forked from qt-creator/qt-creator
C++: Fix crash in template argument resolving
Occurs in boost/phoenix.hpp Task-number: QTCREATORBUG-14748 Change-Id: If89b0db48346aac72e0d8aaa8d165b2bf43bd784 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
fff0a27103
commit
99dea548e0
@@ -1971,8 +1971,9 @@ FullySpecifiedType CreateBindings::resolveTemplateArgument(Clone &cloner,
|
||||
{
|
||||
FullySpecifiedType ty;
|
||||
|
||||
const TypenameArgument *tParam
|
||||
= specialization->templateParameterAt(index)->asTypenameArgument();
|
||||
const TypenameArgument *tParam = 0;
|
||||
if (Symbol *tArgument = specialization->templateParameterAt(index))
|
||||
tParam = tArgument->asTypenameArgument();
|
||||
if (!tParam)
|
||||
return ty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user