From c083881ac4abaa3171009e5175909736f6670f7f Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 25 Oct 2017 16:24:04 -0400 Subject: [PATCH 22/24] FIXME: (jason's): fix Wsizeof-pointer-div.c --- gcc/cp/typeck.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index d5d1464..dc53106 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -1614,6 +1614,8 @@ cxx_sizeof_nowarn (tree type) static tree cxx_sizeof_expr (tree e, tsubst_flags_t complain) { + STRIP_ANY_LOCATION_WRAPPER (e); + if (e == error_mark_node) return error_mark_node; @@ -4371,6 +4373,7 @@ cp_build_binary_op (location_t location, tree type0 = TREE_OPERAND (op0, 0); tree type1 = TREE_OPERAND (op1, 0); tree first_arg = type0; + STRIP_ANY_LOCATION_WRAPPER (first_arg); if (!TYPE_P (type0)) type0 = TREE_TYPE (type0); if (!TYPE_P (type1)) -- 1.8.5.3