[Bug libstdc++/69769] arithmetic operation on pointer to a function
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 20 09:21:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69769
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Wolfgang Roehrl from comment #0)
> The compiler accepts this programm despite of performing an arithmetic
> operation on pointer to a function.
Arithmetic on (non-atomic) function pointers is supported by GCC:
https://gcc.gnu.org/onlinedocs/gcc/Pointer-Arith.html
So this is consistent with the built-in types.
More information about the Gcc-bugs
mailing list