This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/32988] [4.3 Regression] ICE in build2_stat, at tree.c:3081



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-08-05 21:00 -------
Patch which I am testing:
Index: tree.c
===================================================================
--- tree.c      (revision 127225)
+++ tree.c      (working copy)
@@ -3077,7 +3077,7 @@ build2_stat (enum tree_code code, tree t

   if (code == POINTER_PLUS_EXPR && arg0 && arg1 && tt)
     gcc_assert (POINTER_TYPE_P (tt) && POINTER_TYPE_P (TREE_TYPE (arg0))
-               && TREE_CODE (TREE_TYPE (arg1)) == INTEGER_TYPE
+               && INTEGRAL_TYPE_P (TREE_TYPE (arg1))
                && useless_type_conversion_p (sizetype, TREE_TYPE (arg1)));

   t = make_node_stat (code PASS_MEM_STAT);


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]