https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105491
--- Comment #8 from CVS Commits ---
The master branch has been updated by Patrick Palka :
https://gcc.gnu.org/g:0c7bce0ac184c057bacad9c8e615ce82923835fd
commit r13-211-g0c7bce0ac184c057bacad9c8e615ce82923835fd
Author: Patrick Palka
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105491
Patrick Palka changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105491
--- Comment #6 from Marek Polacek ---
And since it only happens with a polymorphic class, my bet is that we think
there are two members because one is the artificial vtable for S and the other
is the bool. I can poke more.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105491
Marek Polacek changed:
What|Removed |Added
Keywords||rejects-valid
Priority|P3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105491
--- Comment #5 from Marek Polacek ---
// PR c++/105491
struct V {
virtual int foo();
};
struct S : V {
constexpr S(int) : b() { }
bool b;
};
struct W {
constexpr W() : s({}) {}
union {
S s;
};
};
constexpr W w;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105491
--- Comment #4 from Marek Polacek ---
I think this is a genuine bug that started with r10-7313-gb599bf9d6d1e18.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105491
Jakub Jelinek changed:
What|Removed |Added
Ever confirmed|0 |1
Last reconfirmed|