[Bug c++/62189] Different result between 4.6 and 4.9.1

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Tue Aug 19 19:36:00 GMT 2014


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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
You need to change your expected outcome of your test-suite. According to the
C++ standard, the expected outcome is 0. As of [func.wrap.func.con] p9:

Postconditions: !*this if any of the following hold:
— f is a null function pointer value.
[..]

Therefore, gcc 4.9.1 is right.


More information about the Gcc-bugs mailing list