[Bug c++/83437] [8 Regression] bogus warning: cast between incompatible function types from ‘int (*)()’ to ‘V’ {aka ‘void* (*)()’ [-Wcast-function-type]
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 16 02:37:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83437
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #8 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #2)
> I think casting to/from void* (*)() should always be silently accepted.
> Or perhaps the warning should not be enabled even for -Wextra like clang's
> -Wbad-function-cast. (BTW why didn't you use that name?)
GCC already has a warning by that name; I asked about it in October and this
was Bernd's response: https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00250.html
More information about the Gcc-bugs
mailing list