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
This commit is contained in:
parent
15ed2619b2
commit
32ad49af4c
2 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
2015-05-05 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* semantics.c (finish_call_expr): Check complain.
|
||||
|
||||
* decl2.c (reset_type_linkage_2): Update the DECL_NAME of a
|
||||
maybe-in-charge constructor.
|
||||
|
||||
|
|
|
@ -2377,6 +2377,7 @@ finish_call_expr (tree fn, vec<tree, va_gc> **args, bool disallow_virtual,
|
|||
if (!result)
|
||||
{
|
||||
if (warn_sizeof_pointer_memaccess
|
||||
&& (complain & tf_warning)
|
||||
&& !vec_safe_is_empty (*args)
|
||||
&& !processing_template_decl)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue