aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 382e254..95fafad 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -500,7 +500,10 @@ build_cplus_array_type_1 (elt_type, index_type)
TYPE_DOMAIN (t) = index_type;
}
else
- t = build_array_type (elt_type, index_type);
+ {
+ t = build_array_type (elt_type, index_type);
+ record_component_aliases (t);
+ }
/* Push these needs up so that initialization takes place
more easily. */