* decl.c (start_preparsed_function): Do defer nested functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158095
138bc75d-0d04-0410-961f-
82ee72b054a4
2010-04-07 Jason Merrill <jason@redhat.com>
+ PR c++/43016
+ * decl.c (start_preparsed_function): Do defer nested functions.
+
PR c++/11094, DR 408
* cp-tree.h (VAR_HAD_UNKNOWN_BOUND, SET_VAR_HAD_UNKNOWN_BOUND): New.
* decl2.c (finish_static_data_member_decl): Set it.
if ((DECL_DECLARED_INLINE_P (decl1)
|| DECL_TEMPLATE_INSTANTIATION (decl1))
- && ! DECL_INTERFACE_KNOWN (decl1)
- /* Don't try to defer nested functions for now. */
- && ! decl_function_context (decl1))
+ && ! DECL_INTERFACE_KNOWN (decl1))
DECL_DEFER_OUTPUT (decl1) = 1;
else
DECL_INTERFACE_KNOWN (decl1) = 1;