forked from qt-creator/qt-creator
Revert "C++: fix support for typedef of templated typedefs"
Infinite recursion in the lookup of:
struct common_type {
public:
typedef typename common_type<typename common_type<_Tp, _Up>::type,
V>::type type;
};
This reverts commit 9a56ce4e85bec81c521258f44e9076d0bc9cce92
Change-Id: I675fe39018789cd04127d105eb983d2cb7798ca5
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -690,15 +690,8 @@ bool ResolveExpression::visit(CallAST *ast)
|
||||
}
|
||||
|
||||
} else if (Function *funTy = ty->asFunctionType()) {
|
||||
if (maybeValidPrototype(funTy, actualArgumentCount)) {
|
||||
LookupItem item;
|
||||
item.setType(funTy->returnType().simplified());
|
||||
item.setScope(scope);
|
||||
// we have to remember a binding because it can be a template instantiation
|
||||
item.setBinding(result.binding());
|
||||
|
||||
_results.append(item);
|
||||
}
|
||||
if (maybeValidPrototype(funTy, actualArgumentCount))
|
||||
addResult(funTy->returnType().simplified(), scope);
|
||||
|
||||
} else if (Class *classTy = ty->asClassType()) {
|
||||
// Constructor call
|
||||
|
||||
Reference in New Issue
Block a user