[Bug c++/65509] [5 Regression] [C++11] GCC rejects operator== with two distinct pointers as not constexpr
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 25 14:44:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65509
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #4)
> The difference between when i1 and i2 are constexprs and when they are not
> is that their cgraph nodes have definition = false if they are constexprs.
> Dunno if that is intentional or not.
True, they don't have definitions because we're trying to evaluate the
constexpr comparison in cxx_eval_binary_expression before finalize_decl could
create the definitions for i1 and i2.
More information about the Gcc-bugs
mailing list