https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121114
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- BTW, does the standard require that in all standard headers where these exceptions can be thrown the corresponding exception types have to be defined, or are the __throw_* functions just trying to make the throwing possible even in headers which don't need to declare those? Is the use of extern __throw_* fndecls just a header optimization? Could those class types be moved into new bits/ header files and included from bits/funcexcept.h for C++26?