Ignore:
Timestamp:
Mar 20, 2018, 4:01:41 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
41624f92, 8669cd3
Parents:
d2034b4
Message:

Implement unmanaged C compound-literal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rd2034b4 rf810e09  
    535535                { $$ = new ExpressionNode( build_compoundLiteral( $2, new InitializerNode( $5, true ) ) ); }
    536536        | '(' type_no_function ')' '@' '{' initializer_list comma_opt '}' // CFA, explicit C compound-literal
    537                 { SemanticError( yylloc, "explicit C compound-literal is currently unimplemented." ); $$ = nullptr; } // FIX ME
     537                { $$ = new ExpressionNode( build_compoundLiteral( $2, (new InitializerNode( $6, true ))->set_maybeConstructed( false ) ) ); }
    538538        | '^' primary_expression '{' argument_expression_list '}' // CFA
    539539                {
Note: See TracChangeset for help on using the changeset viewer.