summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-21 16:20:55 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-21 16:20:55 +0000
commitcc9aa8dc4ec5e144e72d06783cff1f8214a2f24a (patch)
tree1507761eeb5b7f526314767a9ece72ff21c23907
parent7e2edc7a868872185ef42f7a966aa7612b9e1b45 (diff)
downloadgcc-cc9aa8dc4ec5e144e72d06783cff1f8214a2f24a.tar.gz
* decl.c (require_complete_types_for_parms): Call layout_decl
after we've completed the type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23743 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ffeafb15761..2345a061054 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+1998-11-21 Jason Merrill <jason@yorick.cygnus.com>
+
+ * decl.c (require_complete_types_for_parms): Call layout_decl
+ after we've completed the type.
+
1998-11-21 Martin von Löwis <loewis@informatik.hu-berlin.de>
* decl2.c (validate_nonmember_using_decl): Allow using templates
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 8640364ea41..0d9509274ce 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -11015,6 +11015,8 @@ require_complete_types_for_parms (parms)
error ("parameter has incomplete type");
TREE_TYPE (parms) = error_mark_node;
}
+ else
+ layout_decl (parms, 0);
#if 0
/* If the arg types are incomplete in a declaration,
they must include undefined tags.