Commit b830b74c by Mark Mitchell Committed by Mark Mitchell

re PR c++/13635 (ICE in register_specialization for specific order of template specialization)

	PR c++/13635
	* pt.c (tsubst): Use finish_typeof.

	PR c++/13635
	* g++.dg/ext/typeof7.C: New test.

From-SVN: r76131
parent 60fa6554
2004-01-18 Mark Mitchell <mark@codesourcery.com>
PR c++/13635
* pt.c (tsubst): Use finish_typeof.
2004-01-16 Jason Merrill <jason@redhat.com> 2004-01-16 Jason Merrill <jason@redhat.com>
PR c++/11725 PR c++/11725
......
...@@ -7106,13 +7106,13 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl) ...@@ -7106,13 +7106,13 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl)
case TYPEOF_TYPE: case TYPEOF_TYPE:
{ {
tree e1 = tsubst_expr (TYPE_FIELDS (t), args, complain, in_decl); tree type;
if (e1 == error_mark_node)
return error_mark_node;
return cp_build_qualified_type_real (TREE_TYPE (e1), type = finish_typeof (tsubst_expr (TYPE_FIELDS (t), args, complain,
in_decl));
return cp_build_qualified_type_real (type,
cp_type_quals (t) cp_type_quals (t)
| cp_type_quals (TREE_TYPE (e1)), | cp_type_quals (type),
complain); complain);
} }
......
2004-01-18 Mark Mitchell <mark@codesourcery.com>
PR c++/13635
* g++.dg/ext/typeof7.C: New test.
2004-01-18 David Edelsohn <edelsohn@gnu.org> 2004-01-18 David Edelsohn <edelsohn@gnu.org>
* gcc.dg/array-quals-1.c: xfail on powerpc*-*-aix*. * gcc.dg/array-quals-1.c: xfail on powerpc*-*-aix*.
......
// PR c++/13635
// { dg-options "" }
template<int n> class X {template<class Y> typeof(Y::y) foo();};
X<0> x;
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