diff options
author | Jason Merrill <jason@redhat.com> | 2013-01-02 14:03:04 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2013-01-02 14:03:04 -0500 |
commit | e78167f298583c1770b2889cc49a2b31dd42c137 (patch) | |
tree | 9a488488943c24223d38fd70d5904cca475fa417 /gcc/tree.c | |
parent | cc1863452c2ebf3696ac7247aa9e4ae9db633c49 (diff) | |
download | gcc-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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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) |