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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Just using
using V = void (*)();
is enough to quiet the warning.

And, -Wbad-function-cast seems to be something different, at least from the
https://github.com/llvm-mirror/clang/blob/master/test/Sema/warn-bad-function-cast.c
testcase it seems it is warning about casting a return value of a function to
some other type, that is completely useless warning.  What is wrong on casting
a function return value with int type to float?  Or vice versa?

Reply via email to