Commit 077e7015 by Mark Mitchell Committed by Mark Mitchell

decl.c (pushtag): Revert previous change.

	* 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
parent d92e4d8c
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.
......
......@@ -2287,14 +2287,6 @@ pushtag (name, type, globalize)
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);
}
......
......@@ -3212,6 +3212,11 @@ lookup_template_class (d1, arglist, in_decl, context)
&& 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment