File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -1852,7 +1852,7 @@ Enable the non-attribute syntax for contracts.
1852
1852
1853
1853
fcontracts-nonattr-noconst
1854
1854
C++ Var(flag_contracts_nonattr_noconst) Init(0)
1855
- Disable the consitification of entities appearing in a contract condition.
1855
+ Disable the const-ification of entities appearing in a contract condition.
1856
1856
1857
1857
fcontracts-nonattr-mutable-keyword
1858
1858
C++ Var(flag_contracts_nonattr_mutable_keyword) Init(0)
Original file line number Diff line number Diff line change @@ -12295,11 +12295,8 @@ cp_parser_lambda_body (cp_parser* parser, tree lambda_expr)
12295
12295
12296
12296
/* We need to parse deferred contract conditions before we try to call
12297
12297
finish_function (which will try to emit the contracts). */
12298
- for (tree a = DECL_ATTRIBUTES (fco); a; a = TREE_CHAIN (a))
12299
- {
12300
- if (cxx_contract_attribute_p (a))
12301
- cp_parser_late_contract_condition (parser, fco, a);
12302
- }
12298
+ for (tree a = DECL_CONTRACTS (fco); a; a = CONTRACT_CHAIN (a))
12299
+ cp_parser_late_contract_condition (parser, fco, a);
12303
12300
12304
12301
finish_lambda_function (body);
12305
12302
}
@@ -27606,11 +27603,8 @@ cp_parser_class_specifier (cp_parser* parser)
27606
27603
parser->local_variables_forbidden_p |= THIS_FORBIDDEN;
27607
27604
27608
27605
/* Now we can parse contract conditions. */
27609
- for (tree a = DECL_ATTRIBUTES (decl); a; a = TREE_CHAIN (a))
27610
- {
27611
- if (cxx_contract_attribute_p (a))
27612
- cp_parser_late_contract_condition (parser, decl, a);
27613
- }
27606
+ for (tree a = DECL_CONTRACTS (decl); a; a = CONTRACT_CHAIN (a))
27607
+ cp_parser_late_contract_condition (parser, decl, a);
27614
27608
27615
27609
/* Restore the state of local_variables_forbidden_p. */
27616
27610
parser->local_variables_forbidden_p = local_variables_forbidden_p;
You can’t perform that action at this time.
0 commit comments