From 5b47c149ab53fc9b9c1a320d74dd8020526b351f Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 25 Oct 2017 16:36:58 -0400 Subject: [PATCH 23/24] FIXME: (jason's): fix Wsizeof-pointer-memaccess2.c --- gcc/cp/decl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index a3cc80c..50051e3 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8139,6 +8139,8 @@ cp_complete_array_type (tree *ptype, tree initial_value, bool do_default) int failure; tree type, elt_type; + STRIP_ANY_LOCATION_WRAPPER (initial_value); + /* Don't get confused by a CONSTRUCTOR for some other type. */ if (initial_value && TREE_CODE (initial_value) == CONSTRUCTOR && !BRACE_ENCLOSED_INITIALIZER_P (initial_value) -- 1.8.5.3