* decl.c (pushtag): Revert previous change.
* pt.c (lookup_template_class): Don't put out debugging
information for types that use template parameters.
From-SVN: r21286
1998-07-19 Mark Mitchell <mark@markmitchell.com>
+ * decl.c (pushtag): Revert previous change.
+ * pt.c (lookup_template_class): Don't put out debugging
+ information for types that use template parameters.
+
* decl.c (pushtag): Don't put out debugging information for
compiler-generated typedefs.
if (current_lang_name == lang_name_java)
TYPE_FOR_JAVA (type) = 1;
SET_DECL_ARTIFICIAL (d);
- /* There's no reason to put out debugging information
- for these declarations since they are
- compiler-generated. Furthermore, if the type makes
- use of template parameters, the code that generates
- debugging information will get confused. It is safe
- to put these out in the non-template case, just
- useless. */
- DECL_IGNORED_P (d) = 1;
if (! in_class)
set_identifier_type_value_with_scope (name, type, b);
}
&& CLASSTYPE_INTERFACE_KNOWN (TREE_TYPE (template))
&& ! CLASSTYPE_INTERFACE_ONLY (TREE_TYPE (template)))
add_pending_template (t);
+
+ if (uses_template_parms (arglist))
+ /* If the type makes use of template parameters, the
+ code that generates debugging information will crash. */
+ DECL_IGNORED_P (TYPE_STUB_DECL (t)) = 1;
}
return t;