Changeset 6e3eaa57


Ignore:
Timestamp:
Jun 4, 2018, 9:40:42 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, with_gc
Children:
401e61f
Parents:
9a72c4d
Message:

fix single parameter _Static_assert

Location:
src/Parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    r9a72c4d r6e3eaa57  
    1010// Created On       : Sat May 16 13:17:07 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Mar 22 11:57:39 2018
    13 // Update Count     : 801
     12// Last Modified On : Mon Jun  4 21:24:45 2018
     13// Update Count     : 802
    1414//
    1515
     
    314314
    315315Expression * build_constantStr( string & str ) {
     316        assert( str.length() > 0 );
    316317        string units;                                                                           // units
    317318        sepString( str, units, '"' );                                           // separate constant from units
  • src/Parser/parser.yy

    r9a72c4d r6e3eaa57  
    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:18:40 2018
    13 // Update Count     : 3487
     12// Last Modified On : Mon Jun  4 21:24:46 2018
     13// Update Count     : 3488
    1414//
    1515
     
    13381338                { $$ = DeclarationNode::newStaticAssert( $3, $5 ); }
    13391339        | STATICASSERT '(' constant_expression ')' ';'          // CFA
    1340                 { $$ = DeclarationNode::newStaticAssert( $3, build_constantStr( *new string( "" ) ) ); }
     1340                { $$ = DeclarationNode::newStaticAssert( $3, build_constantStr( *new string( "\"\"" ) ) ); }
    13411341
    13421342// C declaration syntax is notoriously confusing and error prone. Cforall provides its own type, variable and function
Note: See TracChangeset for help on using the changeset viewer.