Commit 6a6083cb authored by Christian Kamm's avatar Christian Kamm Committed by hjk
Browse files

C++11: Fix parsing of noexcept(constant-expression).



Change-Id: I745ce4a4810a995d80ea0da12ec993d84637223f
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent b9f6f1bc
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment