[Bug middle-end/36369] [4.3/4.4 Regression] may_alias broken with previous uses of non attributed type in some cases
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 29 13:58:00 GMT 2008
------- Comment #5 from pinskia at gcc dot gnu dot org 2008-05-29 13:58 -------
I was wrong about being C++ specific as here is a testcase which fails with
both front-ends:
struct g{long a;};
unsigned long f(struct g *a) { return *(unsigned long *)&a->a;}
struct A
{
void *a;
};
int f1(const struct A *x, long *y)
{
typedef long __attribute__ ((may_alias)) long_a;
*y = *(const long_a *) (&x->a);
return 1;
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36369
More information about the Gcc-bugs
mailing list