------- Comment #5 from reichelt at gcc dot gnu dot org  2006-07-19 11:40 
-------
Here's a slightly shorter testcase:

=========================================
struct A
{
  char c[13];
  int k[1];
};

struct A a[1];

void foo(int* p)
{
  int i, j;
  for (i=0; i<2; ++i)
    if (memcmp (a[i].k, p, j))
    {
      *p = a[i].k[0];
      bar ((struct A*) (a[i].k));
      break;
    }
}
=========================================

Btw, the error should be an internal_error and not a fatal_error IMHO:

flow.c:493:  fatal_error ("internal consistency failure");
flow.c:518:       fatal_error ("internal consistency failure");
flow.c:540:           fatal_error ("internal consistency failure");

We already have issue an ICE with the same message here:

emit-rtl.c:2239:      internal_error ("internal consistency failure");


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to