diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-16 15:12:10 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-16 15:12:10 +0000 |
commit | 4430f688ae61145a51c2a3cbbe902afdec135176 (patch) | |
tree | 9cdcb4cf2bc217b21ecb591201bd58f69d5cae27 /gcc/cp/class.c | |
parent | 1e4343cd9927c965b5c1801a424e9708b09224f8 (diff) | |
download | gcc-4430f688ae61145a51c2a3cbbe902afdec135176.tar.gz |
2015-04-16 Paolo Carlini <paolo.carlini@oracle.com>
* call.c (build_op_delete_call, build_over_call): Check mark_used
return value.
* class.c (resolve_address_of_overloaded_function): Likewise.
* decl.c (cxx_maybe_build_cleanup): Likewise.
* pt.c (gen_elem_of_pack_expansion_instantiation, tsubst_baselink,
tsubst_qualified_id, tsubst_copy, tsubst_copy_and_build): Likewise.
* rtti.c (build_dynamic_cast_1): Likewise.
* semantics.c (process_outer_var_ref): Likewise.
* typeck.c (build_class_member_access_expr,
cp_build_function_call_vec, cp_build_addr_expr_1): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 9f189fb5eaf..fde51c5753d 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -7755,8 +7755,8 @@ resolve_address_of_overloaded_function (tree target_type, /* Make =delete work with SFINAE. */ if (DECL_DELETED_FN (fn) && !(flags & tf_error)) return error_mark_node; - - mark_used (fn); + if (!mark_used (fn, flags) && !(flags & tf_error)) + return error_mark_node; } /* We could not check access to member functions when this |