------- Comment #14 from pinskia at gcc dot gnu dot org  2006-03-02 04:44 
-------
here is an ever more reduced testcase:
void g(const void*);
struct B
{
  int* x[2];
  int *p;
  B()
  {
     for (int** p=x; p<x+2; ++p)
      *p = 0;
  }
  ~B()
   {
      g(p);
   }
};
void bar()
{
  const B &b = B();
  g(&b);
}
--------
Compile with "-O2 -ftree-vectorize --param max-aliased-vops=0 "
--param max-aliased-vops=0 is needed so that aliaing grouping is done always.


-- 


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

Reply via email to