Added semantic checks for stray semicolons and topldevel empty declarations.

This commit is contained in:
Roberto Raggi
2010-12-16 12:25:51 +01:00
parent 476dda1b43
commit 88fe5a50a1
8 changed files with 30 additions and 2 deletions

View File

@@ -557,6 +557,7 @@ EnumSpecifierAST *EnumSpecifierAST::clone(MemoryPool *pool) const
for (EnumeratorListAST *iter = enumerator_list, **ast_iter = &ast->enumerator_list;
iter; iter = iter->next, ast_iter = &(*ast_iter)->next)
*ast_iter = new (pool) EnumeratorListAST((iter->value) ? iter->value->clone(pool) : 0);
ast->stray_comma_token = stray_comma_token;
ast->rbrace_token = rbrace_token;
return ast;
}