aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 0b7d143c557..b87d3939103 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -2906,7 +2906,7 @@ add_builtin_candidates (struct z_candidate **candidates, enum tree_code code,
if (code == COND_EXPR)
{
if (real_lvalue_p (args[i]))
- vec_safe_push (types[i], build_reference_type (argtypes[i]));
+ vec_safe_push (types[i], TREE_CAST (build_reference_type (argtypes[i])));
vec_safe_push (types[i], TYPE_MAIN_VARIANT (argtypes[i]));
}
@@ -2943,7 +2943,7 @@ add_builtin_candidates (struct z_candidate **candidates, enum tree_code code,
else
{
if (code == COND_EXPR && real_lvalue_p (args[i]))
- vec_safe_push (types[i], build_reference_type (argtypes[i]));
+ vec_safe_push (types[i], TREE_CAST (build_reference_type (argtypes[i])));
type = non_reference (argtypes[i]);
if (i != 0 || ! ref1)
{
@@ -6735,7 +6735,7 @@ convert_arg_to_ellipsis (tree arg, tsubst_flags_t complain)
warning_at (loc, OPT_Wdouble_promotion,
"implicit conversion from %qT to %qT when passing "
"argument to function",
- arg_type, double_type_node);
+ arg_type, TREE_CAST(double_type_node));
arg = convert_to_real (double_type_node, arg);
}
else if (NULLPTR_TYPE_P (arg_type))