https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104266
--- Comment #4 from Fedor Chelnokov ---
In your last example, I think Clang is right, because `Y` is not an aggregate
in C++11 due to the presence of default member initializer. And it becomes an
aggregate only in C++14.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104266
--- Comment #3 from Andrew Pinski ---
Here is another example:
class X { protected: ~X(); friend struct Y; };
struct Y { X x = {}; };
int main() {
Y b {};
}
But unlike the previous example, this one is rejected by clang in C++14 bu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104266
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever confirmed|0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104266
Jiang An changed:
What|Removed |Added
CC||de34 at live dot cn
--- Comment #1 from Jian