PR c++/9167, c++/9358
* decl.c (require_complete_types_for_parms): Also update DECL_ARG_TYPE.
From-SVN: r61459
+2003-01-17 Jason Merrill <jason@redhat.com>
+
+ PR c++/9167, c++/9358
+ * decl.c (require_complete_types_for_parms): Also update DECL_ARG_TYPE.
+
2003-01-17 Jason Merrill <jason@redhat.com>
PR c++/9342
/* grokparms will have already issued an error */
TREE_TYPE (parms) = error_mark_node;
else if (complete_type_or_else (TREE_TYPE (parms), parms))
- layout_decl (parms, 0);
+ {
+ layout_decl (parms, 0);
+ DECL_ARG_TYPE (parms) = type_passed_as (TREE_TYPE (parms));
+ }
else
TREE_TYPE (parms) = error_mark_node;
}
--- /dev/null
+// PR c++/9167
+// { dg-options "-finline" }
+
+struct A {
+ ~A();
+ A f(A) { }
+};
+
+
+void f(void)
+{
+ A a;
+ a.f(a);
+}