File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4630,7 +4630,8 @@ cp_binding_level_descriptor (cp_binding_level *scope)
4630
4630
" template-parameter-scope" ,
4631
4631
" template-explicit-spec-scope" ,
4632
4632
" transaction-scope" ,
4633
- " openmp-scope"
4633
+ " openmp-scope" ,
4634
+ " contract-check-scope"
4634
4635
};
4635
4636
static_assert (ARRAY_SIZE (scope_kind_names) == sk_count,
4636
4637
" must keep names aligned with scope_kind enum" );
@@ -4720,6 +4721,7 @@ begin_scope (scope_kind kind, tree entity)
4720
4721
case sk_scoped_enum:
4721
4722
case sk_transaction:
4722
4723
case sk_omp:
4724
+ case sk_contract:
4723
4725
case sk_stmt_expr:
4724
4726
scope->keep = keep_next_level_flag;
4725
4727
break ;
Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ enum scope_kind {
214
214
"template <>", this scope is always empty. */
215
215
sk_transaction, /* A synchronized or atomic statement. */
216
216
sk_omp, /* An OpenMP structured block. */
217
+ sk_contract, /* A P2900 contract. */
217
218
sk_count /* Number of scope_kind enumerations. */
218
219
};
219
220
@@ -287,7 +288,7 @@ struct GTY(()) cp_binding_level {
287
288
/* The kind of scope that this object represents. However, a
288
289
SK_TEMPLATE_SPEC scope is represented with KIND set to
289
290
SK_TEMPLATE_PARMS and EXPLICIT_SPEC_P set to true. */
290
- ENUM_BITFIELD (scope_kind) kind : 4 ;
291
+ ENUM_BITFIELD (scope_kind) kind : 5 ;
291
292
292
293
/* True if this scope is an SK_TEMPLATE_SPEC scope. This field is
293
294
only valid if KIND == SK_TEMPLATE_PARMS. */
@@ -315,7 +316,7 @@ struct GTY(()) cp_binding_level {
315
316
parent scope. */
316
317
unsigned artificial : 1 ;
317
318
318
- /* 21 bits left to fill a 32-bit word. */
319
+ /* 20 bits left to fill a 32-bit word. */
319
320
};
320
321
321
322
/* The binding level currently in effect. */
You can’t perform that action at this time.
0 commit comments