diff options
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index b2db7f8..b537b7e 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -4175,7 +4175,8 @@ walk_subobject_offsets (tree type, /* Avoid recursing into objects that are not interesting. */ if (!CLASS_TYPE_P (element_type) || !CLASSTYPE_CONTAINS_EMPTY_CLASS_P (element_type) - || !domain) + || !domain + || integer_minus_onep (TYPE_MAX_VALUE (domain))) return 0; /* Step through each of the elements in the array. */ |