diff options
Diffstat (limited to 'gdb/compile/compile-c-types.c')
-rw-r--r-- | gdb/compile/compile-c-types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/compile/compile-c-types.c b/gdb/compile/compile-c-types.c index f48eca2152a..4853c3f78b1 100644 --- a/gdb/compile/compile-c-types.c +++ b/gdb/compile/compile-c-types.c @@ -44,7 +44,7 @@ convert_array (compile_c_instance *context, struct type *type) element_type = context->convert_type (type->target_type ()); - if (range->bounds ()->low.kind () != PROP_CONST) + if (!range->bounds ()->low.is_constant ()) return context->plugin ().error (_("array type with non-constant" " lower bound is not supported")); if (range->bounds ()->low.const_val () != 0) |