[Bug c++/106150] Incorrect error for defaulted anonymous union member

2022-06-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106150 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/106150] Incorrect error for defaulted anonymous union member

2022-06-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106150 --- Comment #2 from Andrew Pinski --- MSVC and ICC accept it though.

[Bug c++/106150] Incorrect error for defaulted anonymous union member

2022-06-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106150 --- Comment #1 from Andrew Pinski --- clang also rejects it: :21:4: error: defaulting this default constructor would delete it after its first declaration S::S() = default; ^ :17:8: note: default constructor of 'S' is implicitly deleted becau