Allow expressions in designators

This commit is contained in:
2025-02-07 00:56:54 +01:00
parent 5e9b4259ca
commit 077de53c74
5 changed files with 51 additions and 40 deletions

View File

@ -412,6 +412,9 @@ namespace gcc
this->current_expression = build1_loc(get_location(&expression->position()), TRUTH_NOT_EXPR,
boolean_type_node, this->current_expression);
break;
case boot::unary_operator::minus:
this->current_expression = fold_build1(NEGATE_EXPR, TREE_TYPE(this->current_expression),
this->current_expression);
}
}