aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2013-08-21 19:06:05 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2013-08-21 19:06:05 +0000
commit98cf9ac919f9901c024e6a8e14096610beb7f7ea (patch)
treeeac762d9b0be22125e42d8ef0a46b61668e001f7 /gcc/cp/call.c
parentdd5e84232f4b63d3fb56ad9be5d0fe016b075856 (diff)
downloadgcc-98cf9ac919f9901c024e6a8e14096610beb7f7ea.zip
gcc-98cf9ac919f9901c024e6a8e14096610beb7f7ea.tar.gz
gcc-98cf9ac919f9901c024e6a8e14096610beb7f7ea.tar.bz2
re PR c++/56130 (__attribute__((deprecated)) does not affect C++ reference)
2013-08-21 Paolo Carlini <paolo.carlini@oracle.com> * call.c (build_new_method_call_1): Use INDIRECT_REF_P. * cp-tree.h (REFERENCE_REF_P): Likewise. * semantics.c (finish_offsetof): Likewise. /cp 2013-08-21 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56130 * semantics.c (finish_id_expression): Handle deprecated references. /testsuite 2013-08-21 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56130 * g++.dg/warn/deprecated-7.C: New. From-SVN: r201906
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index df87d8f..f8fab08 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -7668,7 +7668,7 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
if (init)
{
- if (TREE_CODE (instance) == INDIRECT_REF
+ if (INDIRECT_REF_P (instance)
&& integer_zerop (TREE_OPERAND (instance, 0)))
return get_target_expr_sfinae (init, complain);
init = build2 (INIT_EXPR, TREE_TYPE (instance), instance, init);