Changeset 89da3a9


Ignore:
Timestamp:
Apr 23, 2024, 3:55:38 PM (7 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
bab42de
Parents:
4a3eb1c
Message:

fix parsing bug in field declaring list with empty declarator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r4a3eb1c r89da3a9  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Mar 16 18:19:23 2024
    13 // Update Count     : 6617
     12// Last Modified On : Tue Apr 23 15:39:29 2024
     13// Update Count     : 6620
    1414//
    1515
     
    493493%type<decl> exception_declaration
    494494
    495 %type<decl> field_declaration_list_opt field_declaration field_declaring_list_opt field_declarator field_abstract_list_opt field_abstract
     495%type<decl> field_declaration_list_opt field_declaration field_declaring_list_opt field_declaring_list field_declarator field_abstract_list_opt field_abstract
    496496%type<expr> field field_name_list field_name fraction_constants_opt
    497497
     
    26822682        // empty
    26832683                { $$ = nullptr; }
    2684         | field_declarator
    2685         | field_declaring_list_opt ',' attribute_list_opt field_declarator
     2684        | field_declaring_list
     2685        ;
     2686
     2687field_declaring_list:
     2688        field_declarator
     2689        | field_declaring_list ',' attribute_list_opt field_declarator
    26862690                { $$ = $1->set_last( $4->addQualifiers( $3 ) ); }
    26872691        ;
Note: See TracChangeset for help on using the changeset viewer.