Hi,

earlier today I noticed that I wasn't able to construct a testcase tirggering this warning and decided to replace the body with a gcc_unreachable () and boot & test C/OBJC/C++/OBJC++. No regressions. Its this some sort of legacy case which can go away?

Thanks!
Paolo.

//////////////////////
Index: c-common.c
===================================================================
--- c-common.c  (revision 197432)
+++ c-common.c  (working copy)
@@ -4290,12 +4290,6 @@ pointer_int_sum (location_t loc, enum tree_code re
               "pointer to a function used in arithmetic");
       size_exp = integer_one_node;
     }
-  else if (TREE_CODE (TREE_TYPE (result_type)) == METHOD_TYPE)
-    {
-      pedwarn (loc, pedantic ? OPT_Wpedantic : OPT_Wpointer_arith,
-              "pointer to member function used in arithmetic");
-      size_exp = integer_one_node;
-    }
   else
     size_exp = size_in_bytes (TREE_TYPE (result_type));
 

Reply via email to