Commit c1b93f2b by Jason Merrill Committed by Jason Merrill

re PR c++/39750 (ICE in uses_template_parms, at cp/pt.c:6332)

	PR c++/39750
	* pt.c (uses_template_parms): Handle CONSTRUCTOR.

From-SVN: r146006
parent f7dd1864
2009-04-13 Jason Merrill <jason@redhat.com>
PR c++/39750
* pt.c (uses_template_parms): Handle CONSTRUCTOR.
2009-04-12 Jason Merrill <jason@redhat.com>
PR c++/39742
......
......@@ -5391,7 +5391,9 @@ build_over_call (struct z_candidate *cand, int flags, tsubst_flags_t complain)
else
{
/* We must only copy the non-tail padding parts.
Use __builtin_memcpy for the bitwise copy. */
Use __builtin_memcpy for the bitwise copy.
FIXME fix 22488 so we can go back to using MODIFY_EXPR
instead of an explicit call to memcpy. */
tree arg0, arg1, arg2, t;
......
......@@ -6325,6 +6325,7 @@ uses_template_parms (tree t)
|| TREE_CODE (t) == BASELINK
|| TREE_CODE (t) == IDENTIFIER_NODE
|| TREE_CODE (t) == TRAIT_EXPR
|| TREE_CODE (t) == CONSTRUCTOR
|| CONSTANT_CLASS_P (t))
dependent_p = (type_dependent_expression_p (t)
|| value_dependent_expression_p (t));
......
2009-04-13 Jason Merrill <jason@redhat.com>
PR c++/39750
* g++.dg/template/crash90.C: New.
2009-04-12 Jason Merrill <jason@redhat.com>
PR c++/39742
......
// PR c++/39750
template < unsigned >
struct A ;
template < typename >
struct B ;
template < typename T , A < B < T > // { dg-error "" }
{ }
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