We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed8b7d commit 30eb1aaCopy full SHA for 30eb1aa
src/parser/cxx/parser.cc
@@ -3246,8 +3246,10 @@ void Parser::parse_init_statement(StatementAST*& yyast) {
3246
cxx_runtime_error("enclosing scope of init statement is not empty");
3247
}
3248
3249
- if (!parse_simple_declaration(declaration,
3250
- BindingContext::kInitStatement)) {
+ if (parse_alias_declaration(declaration)) {
+ // did parse an alias declaration
3251
+ } else if (!parse_simple_declaration(declaration,
3252
+ BindingContext::kInitStatement)) {
3253
scope()->reset();
3254
return false;
3255
0 commit comments