aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-03-17 14:48:32 +0000
committergingerBill <bill@gingerbill.org>2019-03-17 14:48:32 +0000
commit4e93b70f8aefbba18f8db70e5e388bdbcf7b0a38 (patch)
tree8923eb38204b2123022ad4db9860f4b12fad5ada /src
parent1eaa47ebae4daf31ad2071a39d978fdbf32f1082 (diff)
Fix bit_field scoping bug
Diffstat (limited to 'src')
-rw-r--r--src/check_type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 451a388fb..1721ed881 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2507,7 +2507,9 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t
case_ast_node(et, BitFieldType, e);
*type = alloc_type_bit_field();
set_base_type(named_type, *type);
+ check_open_scope(ctx, e);
check_bit_field_type(ctx, *type, e);
+ check_close_scope(ctx);
return true;
case_end;