+2017-09-28 Jason Merrill <jason@redhat.com>
+
+ * call.c (build_special_member_call): Use the return value of
+ mark_lvalue_use.
+ * decl.c (compute_array_index_type): Likewise.
+ * parser.c (cp_parser_oacc_wait_list): Likewise.
+ * lambda.c (is_normal_capture_proxy): Handle *this capture.
+ (add_capture): Clarify internal_error message.
+
2017-09-22 Eric Botcazou <ebotcazou@adacore.com>
PR bootstrap/81926
&& (flags & LOOKUP_DELEGATING_CONS))
check_self_delegation (arg);
/* Avoid change of behavior on Wunused-var-2.C. */
- mark_lvalue_use (instance);
+ instance = mark_lvalue_use (instance);
return build2 (INIT_EXPR, class_type, instance, arg);
}
}
{
tree type = TREE_TYPE (size);
- mark_rvalue_use (size);
+ size = mark_rvalue_use (size);
if (cxx_dialect < cxx11 && TREE_CODE (size) == NOP_EXPR
&& TREE_SIDE_EFFECTS (size))
if (val == error_mark_node)
return true;
+ if (TREE_CODE (val) == ADDR_EXPR)
+ val = TREE_OPERAND (val, 0);
gcc_assert (TREE_CODE (val) == COMPONENT_REF);
val = TREE_OPERAND (val, 1);
return DECL_NORMAL_CAPTURE_P (val);
&& current_class_type == LAMBDA_EXPR_CLOSURE (lambda))
{
if (COMPLETE_TYPE_P (current_class_type))
- internal_error ("trying to capture %qD after closure is complete", id);
+ internal_error ("trying to capture %qD in instantiation of "
+ "generic lambda", id);
finish_member_declaration (member);
}
{
tree c = build_omp_clause (clause_loc, OMP_CLAUSE_WAIT);
- mark_rvalue_use (targ);
+ targ = mark_rvalue_use (targ);
OMP_CLAUSE_DECL (c) = targ;
OMP_CLAUSE_CHAIN (c) = list;
list = c;