Changeset 2beaf9b
- Timestamp:
- Feb 22, 2024, 1:55:45 PM (4 months ago)
- Branches:
- master
- Children:
- d06273c
- Parents:
- 2810700
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r2810700 r2beaf9b 1039 1039 | logical_OR_expression '?' comma_expression ':' conditional_expression 1040 1040 { $$ = new ExpressionNode( build_cond( yylloc, $1, $3, $5 ) ); } 1041 // FIX ME: computes $1 twice1042 1041 | logical_OR_expression '?' /* empty */ ':' conditional_expression // GCC, omitted first operand 1043 1042 { $$ = new ExpressionNode( build_cond( yylloc, $1, nullptr, $4 ) ); } -
src/ResolvExpr/CandidateFinder.cpp
r2810700 r2beaf9b 1518 1518 1519 1519 // candidates for true result 1520 // FIX ME: resolves and runs arg1 twice when arg2 is missing. 1520 1521 ast::Expr const * arg2 = conditionalExpr->arg2; 1521 1522 arg2 = arg2 ? arg2 : conditionalExpr->arg1.get();
Note: See TracChangeset
for help on using the changeset viewer.