This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19639] Funny (horrible) code for empty destructor
- From: "rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2005 14:10:16 -0000
- Subject: [Bug tree-optimization/19639] Funny (horrible) code for empty destructor
- References: <20050126134950.19639.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2005-01-26 14:10 -------
We can also not fold &i[0] == &i[1] to false in
int foo(void)
{
int i[2];
if (&i[0] == &i[1])
return 1;
return 0;
}
or i+0 == i+1 which is transformed to &i[0] == &i[1].
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19639