[Bug c++/67767] -Wsuggest-attribute=noreturn suggests noreturn for function which already has noreturn and cold.

zerotype at yahoo dot com gcc-bugzilla@gcc.gnu.org
Tue Sep 29 14:44:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67767

--- Comment #1 from zerotype at yahoo dot com ---
This particular use case also challenges the assertion in the GCC documentation
that "It does not make sense for a noreturn function to have a return type
other than void.". Some of the function pointers are to functions with non-void
return types, and so the exception-throwing default functions have to have
these as well, to have the correct signature for the pointer.



More information about the Gcc-bugs mailing list