C++: Fix "duplicate data type in declaration" for lambdas

The "_type" wasn't reset.

Task-number: QTCREATORBUG-12521
Change-Id: I0d38cb38e270260065313d1235d42f2689385850
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Nikolai Kosjar
2014-06-25 12:45:34 -04:00
parent 80dd1dd263
commit 06e2c3309e
3 changed files with 8 additions and 1 deletions

View File

@@ -1108,7 +1108,7 @@ void Bind::lambdaDeclarator(LambdaDeclaratorAST *ast)
type = this->specifier(it->value, type);
}
// unsigned mutable_token = ast->mutable_token;
type = this->exceptionSpecification(ast->exception_specification, type);
_type = this->exceptionSpecification(ast->exception_specification, type);
}
bool Bind::visit(TrailingReturnTypeAST *ast)