https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84476
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- The same problem applies to attribute noreturn (but not deprecated). Clang, ICC, and Visual C++ behave as expected in both cases, suggesting GCC should change.