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

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Sun Mar 22 10:38:00 GMT 2015


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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
I agree that this code should be accepted. Interestingly, the compiler accepts
the code when the constexpr specifier of both i1 and i2 is removed.


More information about the Gcc-bugs mailing list