[Bug c++/64531] `casting between pointer-to-function and pointer-to-object` is still a warning instead of error with `-pedantic -pedantic-errors`

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 22 04:41:00 GMT 2015


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The standard now says "Converting a function pointer to an object pointer type
or vice versa is conditionally-supported."

GCC supports it, so there is not even a warning in GCC 4.9 or later, so it's
not very likely any change will be made to 4.8 now.



More information about the Gcc-bugs mailing list