------- Comment #5 from pinskia at gcc dot gnu dot org  2006-09-13 23:39 -------
here is the reduced testcase for CCP:
static const char OggFLAC__MAPPING_VERSION_MAJOR = 1;
void f(void)
{
  char synthetic_first_packet_body[10];
  char *b = &synthetic_first_packet_body[4];
  memcpy (b, &OggFLAC__MAPPING_VERSION_MAJOR, (1u));
}

Note the DOM Issue might actually be the same as the CCP, depending on if they
share the same fold replacement function.
Here is a reduced testcase for the DOM ICE:
static const char OggFLAC__MAPPING_VERSION_MAJOR = 1;
void f(void)
{
  char synthetic_first_packet_body[10];
  char *b = synthetic_first_packet_body;
  b+=4u;
  memcpy (b, &OggFLAC__MAPPING_VERSION_MAJOR, (1u));
}


-- 


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

Reply via email to