From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119219 invoked by alias); 25 Mar 2015 14:26:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 119175 invoked by uid 48); 25 Mar 2015 14:26:41 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65509] [5 Regression] [C++11] GCC rejects operator== with two distinct pointers as not constexpr Date: Wed, 25 Mar 2015 14:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg02752.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65509 --- Comment #7 from Marek Polacek --- (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.