Improved compatibility with the gcc extensions.

This commit is contained in:
Roberto Raggi
2009-06-18 17:48:55 +02:00
parent c3c98cca78
commit 9c038180d8
7 changed files with 38 additions and 5 deletions

View File

@@ -97,10 +97,11 @@ DeclaratorAST *DeclaratorAST::clone(MemoryPool *pool) const
{
DeclaratorAST *ast = new (pool) DeclaratorAST;
// copy DeclaratorAST
if (attributes) ast->attributes = attributes->clone(pool);
if (ptr_operators) ast->ptr_operators = ptr_operators->clone(pool);
if (core_declarator) ast->core_declarator = core_declarator->clone(pool);
if (postfix_declarators) ast->postfix_declarators = postfix_declarators->clone(pool);
if (attributes) ast->attributes = attributes->clone(pool);
if (post_attributes) ast->post_attributes = post_attributes->clone(pool);
ast->equals_token = equals_token;
if (initializer) ast->initializer = initializer->clone(pool);
return ast;