https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80495
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-09-14 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail| |6.4.0, 7.3.0, 8.2.0, 9.0 --- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed. Both Clang and ICC diagnose the test case. At the same time, I agree that attributes in the C++ standard are poorly specified.