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
This commit is contained in:
Mark Mitchell 1998-07-19 18:55:38 +00:00 committed by Mark Mitchell
parent d92e4d8cba
commit 077e7015e0
3 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,9 @@
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.

View File

@ -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);
}

View File

@ -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;