[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 5 01:54:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I don't think "(int)(&foo != &bar)" is a valid constant integer expression in
either C or C++. (definitely not in C). This is why GCC rejects it.
More information about the Gcc-bugs
mailing list