[Bug c++/65509] [5 Regression] [C++11] GCC rejects operator== with two distinct pointers as not constexpr

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 25 11:45:00 GMT 2015


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
const int i1 = 1;
const int i2 = 2;
constexpr auto b = &i1 == &i2;
int main() {}

is now also rejected, when it used to be accepted.



More information about the Gcc-bugs mailing list