This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52549] [4.8 Regression] ice in pointer_diff
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Mar 2012 21:49:28 +0000
- Subject: [Bug c/52549] [4.8 Regression] ice in pointer_diff
- Auto-submitted: auto-generated
- References: <bug-52549-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52549
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-13 21:49:28 UTC ---
gcc_assert (TREE_CODE (con0) != PLUS_EXPR
&& TREE_CODE (con1) != PLUS_EXPR);
if (TREE_CODE (con0) == POINTER_PLUS_EXPR)
Reduced testcase:
_mark (long obj, int i, void *a)
{
(void *)&(((long *)(obj)) [i]) - a;
}