File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -12498,11 +12498,8 @@ cp_parser_lambda_body (cp_parser* parser, tree lambda_expr)
12498
12498
12499
12499
/* We need to parse deferred contract conditions before we try to call
12500
12500
finish_function (which will try to emit the contracts). */
12501
- for (tree a = DECL_ATTRIBUTES (fco); a; a = TREE_CHAIN (a))
12502
- {
12503
- if (cxx_contract_attribute_p (a))
12504
- cp_parser_late_contract_condition (parser, fco, a);
12505
- }
12501
+ for (tree a = DECL_CONTRACTS (fco); a; a = CONTRACT_CHAIN (a))
12502
+ cp_parser_late_contract_condition (parser, fco, a);
12506
12503
12507
12504
finish_lambda_function (body);
12508
12505
}
@@ -27860,11 +27857,8 @@ cp_parser_class_specifier (cp_parser* parser)
27860
27857
parser->local_variables_forbidden_p |= THIS_FORBIDDEN;
27861
27858
27862
27859
/* Now we can parse contract conditions. */
27863
- for (tree a = DECL_ATTRIBUTES (decl); a; a = TREE_CHAIN (a))
27864
- {
27865
- if (cxx_contract_attribute_p (a))
27866
- cp_parser_late_contract_condition (parser, decl, a);
27867
- }
27860
+ for (tree a = DECL_CONTRACTS (decl); a; a = CONTRACT_CHAIN (a))
27861
+ cp_parser_late_contract_condition (parser, decl, a);
27868
27862
27869
27863
/* Restore the state of local_variables_forbidden_p. */
27870
27864
parser->local_variables_forbidden_p = local_variables_forbidden_p;
You can’t perform that action at this time.
0 commit comments