tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of IS_AGGR_TYPE.

* tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
	IS_AGGR_TYPE.

	* g++.old-deja/g++.oliva/template5.C: Remove XFAILs.

From-SVN: r38302
This commit is contained in:
Kriang Lerdsuwanakij 2000-12-16 08:06:04 +00:00 committed by Kriang Lerdsuwanakij
parent b429fdf002
commit 221c7a7ff7
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
IS_AGGR_TYPE.
2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (unify): Handle when both ARG and PARM are

View File

@ -1530,7 +1530,7 @@ no_linkage_helper (tp, walk_subtrees, data)
tree t = *tp;
if (TYPE_P (t)
&& (IS_AGGR_TYPE (t) || TREE_CODE (t) == ENUMERAL_TYPE)
&& (CLASS_TYPE_P (t) || TREE_CODE (t) == ENUMERAL_TYPE)
&& (decl_function_context (TYPE_MAIN_DECL (t))
|| ANON_AGGRNAME_P (TYPE_IDENTIFIER (t))))
return t;

View File

@ -1,3 +1,7 @@
2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-deja/g++.oliva/template5.C: Remove XFAILs.
2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-deja/g++.pt/ttp65.C: New test.

View File

@ -5,8 +5,6 @@
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// simplified from bug report by Andrey Slepuhin <pooh@msu.ru>
// crash test - XFAIL *-*-*
template <typename> class X {
template <typename> class Z;
};