From: jason Date: Sat, 21 Nov 1998 16:20:55 +0000 (+0000) Subject: * decl.c (require_complete_types_for_parms): Call layout_decl X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc9aa8dc4ec5e144e72d06783cff1f8214a2f24a;p=platform%2Fupstream%2Flinaro-gcc.git * 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ffeafb1..2345a06 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-11-21 Jason Merrill + + * decl.c (require_complete_types_for_parms): Call layout_decl + after we've completed the type. + 1998-11-21 Martin von Löwis * decl2.c (validate_nonmember_using_decl): Allow using templates diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 8640364..0d95092 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.