[Bug lto/87574] [9 Regression] ICE in add_data_member_location_attribute at gcc/gcc/dwarf2out.c:19226 since r264943
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Oct 10 19:30:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list