This is the mail archive of the gcc-bugs@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]

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions


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.

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