This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22625] -ftree-vrp produces wrong code
- From: "belyshev at depni dot sinp dot msu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2005 01:32:26 -0000
- Subject: [Bug tree-optimization/22625] -ftree-vrp produces wrong code
- References: <20050723004344.22625.belyshev@depni.sinp.msu.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-07-23 01:32 -------
// smaller testcase:
extern "C" void abort (void);
struct T
{
virtual void foo (void) {};
} t;
struct A : T
{
} *p;
int main (void)
{
if (p == &t)
return 0;
if (p)
abort ();
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22625