Commit 59e7a901 by Giovanni Bajo

re PR c++/10126 (ICE in convert_nontype_argument on using overload resolution in template args)

	PR c++/10126
	* pt.c (convert_nontype_argument): Handle default conversions
	while converting a pointer to member function.

From-SVN: r74184
parent c531dd01
2003-12-02 Giovanni Bajo <giovannibajo@gcc.gnu.org> 2003-12-02 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/10126
* pt.c (convert_nontype_argument): Handle default conversions
while converting a pointer to member function.
2003-12-02 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/12573 PR c++/12573
* pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by * pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by
looking into them recursively. looking into them recursively.
......
...@@ -3440,8 +3440,9 @@ convert_nontype_argument (tree type, tree expr) ...@@ -3440,8 +3440,9 @@ convert_nontype_argument (tree type, tree expr)
if (expr == error_mark_node) if (expr == error_mark_node)
return error_mark_node; return error_mark_node;
my_friendly_assert (same_type_p (type, TREE_TYPE (expr)), if (!same_type_p (type, TREE_TYPE (expr)))
0); return error_mark_node;
return expr; return expr;
} }
break; break;
......
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