Skip to content

Commit 96d076e

Browse files
committed
Bind elaborated enum specifiers
1 parent 5fb6e54 commit 96d076e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parser/cxx/parser.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5170,7 +5170,7 @@ auto Parser::parse_elaborated_enum_specifier(SpecifierAST*& yyast,
51705170
ast->classKey = TokenKind::T_ENUM;
51715171
ast->symbol = symbol;
51725172

5173-
specs.setTypeSpecifier(ast);
5173+
specs.accept(ast);
51745174

51755175
return true;
51765176
}
@@ -5228,6 +5228,8 @@ auto Parser::parse_elaborated_type_specifier(SpecifierAST*& yyast,
52285228

52295229
const auto isDeclaration = lookat(TokenKind::T_SEMICOLON);
52305230

5231+
specs.accept(ast);
5232+
52315233
binder_.bind(ast, specs, isDeclaration);
52325234

52335235
return true;

0 commit comments

Comments
 (0)