This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80763] -O3 causes error: inline clone in same comdat group list
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 May 2017 14:59:36 +0000
- Subject: [Bug c++/80763] -O3 causes error: inline clone in same comdat group list
- Auto-submitted: auto-generated
- References: <bug-80763-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80763
--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Here is the reduced code
struct b {
virtual ~b();
};
struct c {
virtual unsigned d(unsigned, unsigned);
virtual unsigned f(unsigned, unsigned, unsigned, unsigned) = 0;
};
template <class e> class i : e, c {
public:
float *g[e::h];
unsigned d(unsigned k, unsigned) {
bool j;
j ? f(k, k, 1, 1) : 0;
}
};
struct l : b {
enum { h };
};
class n : i<l> {
unsigned f(unsigned, unsigned, unsigned, unsigned) {
float *m = g[0];
float a[512];
m[0] = a[0];
}
virtual void o();
};
void n::o() {}