2011-03-18 Jason Merrill <jason@redhat.com>
+ PR c++/48162
+ * semantics.c (finish_call_expr): Allow TARGET_EXPR for now.
+
PR c++/48118
* call.c (build_over_call): Don't skip ck_rvalue.
if (TREE_CODE (result) == INDIRECT_REF)
result = TREE_OPERAND (result, 0);
gcc_assert (TREE_CODE (result) == CALL_EXPR
+ /* FIXME cp_build_function_call_vec should avoid argument
+ and return transformations like build_over_call does. */
+ || TREE_CODE (result) == TARGET_EXPR
|| TREE_CODE (fn) == PSEUDO_DTOR_EXPR
|| errorcount);
result = build_call_vec (TREE_TYPE (result), orig_fn, orig_args);
2011-03-18 Jason Merrill <jason@redhat.com>
+ * g++.dg/template/fn-ptr1.C: New.
+
* g++.dg/overload/volatile1.C: New.
* g++.dg/opt/pr23372.C: New.