forked from qt-creator/qt-creator
C++11: Fix parsing of noexcept(constant-expression).
Change-Id: I745ce4a4810a995d80ea0da12ec993d84637223f Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
4
src/libs/3rdparty/cplusplus/Parser.cpp
vendored
4
src/libs/3rdparty/cplusplus/Parser.cpp
vendored
@@ -2446,7 +2446,9 @@ bool Parser::parseExceptionSpecification(ExceptionSpecificationAST *&node)
|
||||
} else if (_cxx0xEnabled && LA() == T_NOEXCEPT) {
|
||||
NoExceptSpecificationAST *ast = new (_pool) NoExceptSpecificationAST;
|
||||
ast->noexcept_token = consumeToken();
|
||||
if (LA() == T_LPAREN && parseConstantExpression(ast->expression)) {
|
||||
if (LA() == T_LPAREN) {
|
||||
ast->lparen_token = consumeToken();
|
||||
parseConstantExpression(ast->expression);
|
||||
match(T_RPAREN, &ast->rparen_token);
|
||||
}
|
||||
node = ast;
|
||||
|
||||
Reference in New Issue
Block a user