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 c/52549] [4.8 Regression] ice in pointer_diff


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;
}


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