------- Comment #9 from pinskia at gcc dot gnu dot org  2006-08-20 05:12 -------
And here is the testcase for ffv1.i:
typedef struct RangeCoder
{
    unsigned char one_state[256];
} RangeCoder;
static inline void put_rac(RangeCoder *c, unsigned char* const state)
{
  *state= c->one_state[*state];
}
typedef struct PlaneContext{
    unsigned (*state)[32];
} PlaneContext;
static inline void put_symbol(RangeCoder *c, unsigned char *state)
{
    int i;
    const int e;
    put_rac(c, state);
    for(i=e-1; i>=0; i--)
      put_rac(c, state+22+i);
}
int encode_line(void)
{
    PlaneContext * const p;
    RangeCoder * const c;
    int a;
    put_symbol(c, p->state[a]);
}

---------------
Both of these testcases are due to pointers to different "RECORD_TYPE" but of
the same type (the MAIN_VARIANTS are the same), which is the same problem as PR
28776.

*** This bug has been marked as a duplicate of 28776 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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

Reply via email to