This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strange C++ function pointer test


On Thu, 31 Dec 2015, Dominik Vogt wrote:

The minimal failing program is

-- abs.C --
#include <stdlib.h>
static float (*p1_)(float) = abs;
-- abs.C --

This is allowed to fail. If you include math.h (in addition or instead of stdlib.h), it has to work (gcc bug if it doesn't).

See also
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#2294

--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]