https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87574

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Eric Botcazou from comment #2)
> Egad.  Reducing the compile-only testcase...

Not sure which one you mean, but I can duplicate the second
test case with this reduced C++ code:

class a {
public:
  virtual ~a();
};
class c {
public:
  enum j {};
  virtual j d() = 0;
};
class e : a, c {
  j d();
};
class f;
class g {
public:
  static g *h();
  f *i();
};
class f {
public:
  template <class b> b *l(int);
};
c::j e::d() {}
void m() {
  for (int k;;)
    g::h()->i()->l<c>(k)->d();
}

Flags -g and -O2 required. Problem seems to start between revision
264889 and 264959.

Reply via email to