diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-19 11:25:55 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-19 11:25:55 +0000 |
commit | 23dcb41bc83b150df8abb94533ccda4ea5c8dc3f (patch) | |
tree | ff0365f8e88da673e0d9256f770f8b1d474f827b /gcc/tree.c | |
parent | 076a0da76e3cecd24e66243379241b22bc3c673e (diff) | |
download | gcc-23dcb41bc83b150df8abb94533ccda4ea5c8dc3f.tar.gz |
2007-10-19 Richard Guenther <rguenther@suse.de>
PR middle-end/32921
* tree.c (build_array_type): Do not re-layout unbound array
types.
* gfortran.dg/pr32921.f: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129484 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 88ec29e13e3..3cfa55d911b 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -5665,7 +5665,7 @@ build_array_type (tree elt_type, tree index_type) hashcode = iterative_hash_object (TYPE_HASH (index_type), hashcode); t = type_hash_canon (hashcode, t); - if (!COMPLETE_TYPE_P (t)) + if (!COMPLETE_OR_UNBOUND_ARRAY_TYPE_P (t)) layout_type (t); if (TYPE_CANONICAL (t) == t) |