Changeset 2810700 for src/Parser


Ignore:
Timestamp:
Feb 22, 2024, 1:43:00 PM (19 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
2beaf9b
Parents:
7bb516f
Message:

The two argument form of the conditional operator now only has two arguments all the way to the resolver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r7bb516f r2810700  
    10411041                // FIX ME: computes $1 twice
    10421042        | logical_OR_expression '?' /* empty */ ':' conditional_expression // GCC, omitted first operand
    1043                 { $$ = new ExpressionNode( build_cond( yylloc, $1, $1->clone(), $4 ) ); }
     1043                { $$ = new ExpressionNode( build_cond( yylloc, $1, nullptr, $4 ) ); }
    10441044        ;
    10451045
Note: See TracChangeset for help on using the changeset viewer.