on the local_classes list.
* decl2.c (get_guard): Add missing return for old ABI local
variable case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34937
138bc75d-0d04-0410-961f-
82ee72b054a4
2000-07-09 Mark Mitchell <mark@codesourcery.com>
+ * decl.c (pushtag): Don't put local classes in template functions
+ on the local_classes list.
+
+2000-07-04 Scott Snyder <snyder@fnal.gov>
+
+ * decl2.c (get_guard): Add missing return for old ABI local
+ variable case.
+
+2000-07-09 Mark Mitchell <mark@codesourcery.com>
+
* cp-tree.h (char_type_p): New function.
* decl.c (init_decl_processing): Don't initialize
signed_wchar_type_node or unsigned_wchar_type_node.
way. (It's otherwise tricky to find a member function definition
it's only pointed to from within a local class.) */
if (TYPE_CONTEXT (type)
- && TREE_CODE (TYPE_CONTEXT (type)) == FUNCTION_DECL)
+ && TREE_CODE (TYPE_CONTEXT (type)) == FUNCTION_DECL
+ && !processing_template_decl)
VARRAY_PUSH_TREE (local_classes, type);
if (!uses_template_parms (type))
{
guard = get_temp_name (integer_type_node);
rest_of_decl_compilation (guard, NULL_PTR, 0, 0);
+ return guard;
}
if (!flag_new_abi)