aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2013-01-02 14:03:04 -0500
committerJason Merrill <jason@gcc.gnu.org>2013-01-02 14:03:04 -0500
commite78167f298583c1770b2889cc49a2b31dd42c137 (patch)
tree9a488488943c24223d38fd70d5904cca475fa417 /gcc/tree.c
parentcc1863452c2ebf3696ac7247aa9e4ae9db633c49 (diff)
downloadgcc-e78167f298583c1770b2889cc49a2b31dd42c137.zip
gcc-e78167f298583c1770b2889cc49a2b31dd42c137.tar.gz
gcc-e78167f298583c1770b2889cc49a2b31dd42c137.tar.bz2
re PR c++/55804 (GCC omits required call to constructor)
PR c++/55804 PR c++/55032 PR c++/55245 * tree.c (build_array_type_1): Revert earlier change. * cp/tree.c (build_cplus_array_type): Copy layout information to main variant if necessary. From-SVN: r194811
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 429db49..7cacb2a 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -7505,12 +7505,7 @@ build_array_type_1 (tree elt_type, tree index_type, bool shared)
hashval_t hashcode = iterative_hash_object (TYPE_HASH (elt_type), 0);
if (index_type)
hashcode = iterative_hash_object (TYPE_HASH (index_type), hashcode);
- tree old_t = t;
t = type_hash_canon (hashcode, t);
- if (t != old_t)
- /* Lay it out again in case the element type has been completed since
- the array was added to the hash table. */
- layout_type (t);
}
if (TYPE_CANONICAL (t) == t)