diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 97af77cdb..8b288b753 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -171,7 +171,7 @@ int yylex (void); %type const string -%type ivar_decl ivar_declarator def_item def_list +%type ivar_decl def_item def_list %type ivars %type param param_list %type methoddef @@ -1401,18 +1401,8 @@ ivar_decl ; ivars - : ivar_declarator - | ivars ',' { $$ = $0; } ivar_declarator - ; - -ivar_declarator - : identifier - { - $1 = check_redefined ($1); - $1->type = $0.type; - $1->visibility = current_visibility; - symtab_addsymbol (current_symtab, $1); - } + : struct_decl + | ivars ',' { $$ = $0; } struct_decl ; methoddef