diff options
Diffstat (limited to 'gdb/compile/compile-cplus-types.c')
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index 2f87ad865fa..d8e305f237a 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -455,7 +455,7 @@ compile_cplus_convert_array (compile_cplus_instance *instance, struct type *range = type->index_type (); gcc_type element_type = instance->convert_type (type->target_type ()); - if (range->bounds ()->low.kind () != PROP_CONST) + if (!range->bounds ()->low.is_constant ()) { const char *s = _("array type with non-constant" " lower bound is not supported"); |