Ignore:
Timestamp:
Jun 2, 2018, 5:20:36 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
7d69095
Parents:
46fa473
Message:

default second parameter of _Static_assert to null string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r46fa473 rb47b827  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jun  2 17:16:19 2018
    13 // Update Count     : 3480
     12// Last Modified On : Sat Jun  2 17:18:40 2018
     13// Update Count     : 3487
    1414//
    1515
     
    13311331        c_declaration ';'
    13321332        | cfa_declaration ';'                                                           // CFA
    1333         | static_assert
     1333        | static_assert                                                                         // C11
    13341334        ;
    13351335
     
    13371337        STATICASSERT '(' constant_expression ',' string_literal ')' ';' // C11
    13381338                { $$ = DeclarationNode::newStaticAssert( $3, $5 ); }
     1339        | STATICASSERT '(' constant_expression ')' ';'          // CFA
     1340                { $$ = DeclarationNode::newStaticAssert( $3, build_constantStr( *new string( "" ) ) ); }
    13391341
    13401342// C declaration syntax is notoriously confusing and error prone. Cforall provides its own type, variable and function
     
    18921894        | cfa_typedef_declaration ';'                                           // CFA
    18931895                { SemanticError( yylloc, "Typedef in aggregate is currently unimplemented." ); $$ = nullptr; }
    1894         | static_assert
     1896        | static_assert                                                                         // C11
    18951897        ;
    18961898
Note: See TracChangeset for help on using the changeset viewer.