------- Additional Comments From rguenth at gcc dot gnu dot org  2005-05-14 
17:51 -------
A little more simplification:

typedef struct { char ch; } pstr;
const pstr ao = { 'O' };

void test1(void)
{
   *((char *)&ao.ch) = 1;
}

.02.original:
  *(char *) &ao.ch = 1;

.02.gimple:
  ao.ch = 1;

which doesn't have the PLUS_EXPR but ends up with a modify expr
that has a const lhs.

-- 


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

Reply via email to