2017-02-10 Jason Merrill <jason@redhat.com>
+ PR c++/71285 - member of fold-expression
+ * semantics.c (finish_unary_fold_expr)
+ (finish_binary_fold_expr): Use null type for fold-expressions.
+
PR c++/79401 - protected inherited constructor
* call.c (enforce_access): For inheriting constructor, find a base
binfo in the path we already have.
// Build the fold expression.
tree code = build_int_cstu (integer_type_node, abs (op));
- tree fold = build_min (dir, unknown_type_node, code, pack);
+ tree fold = build_min_nt_loc (UNKNOWN_LOCATION, dir, code, pack);
FOLD_EXPR_MODIFY_P (fold) = (op < 0);
return fold;
}
{
pack = make_pack_expansion (pack);
tree code = build_int_cstu (integer_type_node, abs (op));
- tree fold = build_min (dir, unknown_type_node, code, pack, init);
+ tree fold = build_min_nt_loc (UNKNOWN_LOCATION, dir, code, pack, init);
FOLD_EXPR_MODIFY_P (fold) = (op < 0);
return fold;
}