Ignore:
Timestamp:
Aug 31, 2023, 5:51:00 PM (13 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
2a301ff
Parents:
c84dd61
Message:

Array can use enum instance with explicit initializer as designator. More general case will be covered in later commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rc84dd61 r92355883  
    26962696        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt
    26972697                {
    2698                         if ( $3->storageClasses.any() || $3->type->qualifiers.val != 0 ) {
     2698                        if ( $3 && ($3->storageClasses.any() || $3->type->qualifiers.val != 0 )) {
    26992699                                SemanticError( yylloc, "syntax error, storage-class and CV qualifiers are not meaningful for enumeration constants, which are const." );
    27002700                        }
Note: See TracChangeset for help on using the changeset viewer.