From 32ad49af4c3cd925099ca3d4e29cb30d87d25738 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 5 May 2015 22:24:44 -0400 Subject: [PATCH] Fix g++.dg/torture/Wsizeof-pointer-memaccess2.C with -std=c++11 Fix g++.dg/torture/Wsizeof-pointer-memaccess2.C with -std=c++11 * semantics.c (finish_call_expr): Check complain. From-SVN: r222840 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/semantics.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 029c64937a2..09476c43a01 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2015-05-05 Jason Merrill + * semantics.c (finish_call_expr): Check complain. + * decl2.c (reset_type_linkage_2): Update the DECL_NAME of a maybe-in-charge constructor. diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 0fc08b5f1ed..701a8ebf18f 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2377,6 +2377,7 @@ finish_call_expr (tree fn, vec **args, bool disallow_virtual, if (!result) { if (warn_sizeof_pointer_memaccess + && (complain & tf_warning) && !vec_safe_is_empty (*args) && !processing_template_decl) { -- 2.30.2