[Bug c++/40389] optimizer bug (possibly)
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 9 21:31:00 GMT 2009
------- Comment #6 from pinskia at gcc dot gnu dot org 2009-06-09 21:31 -------
I think this code is undefined as there is an address of a local variable being
taken and stored (explicitly when doing:
__attribute__ ((noinline)) H (A *b) : a (b)
{
p = 0;
n = 0;
if (a != 0)
a->k.bar (this);
}
this is an address of a local variable (the temp in baz).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40389
More information about the Gcc-bugs
mailing list