From 23dcb41bc83b150df8abb94533ccda4ea5c8dc3f Mon Sep 17 00:00:00 2001 From: rguenth Date: Fri, 19 Oct 2007 11:25:55 +0000 Subject: 2007-10-19 Richard Guenther 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 --- gcc/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree.c') 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) -- cgit v1.2.1