From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113924 invoked by alias); 25 Mar 2015 11:45:59 -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 113881 invoked by uid 48); 25 Mar 2015 11:45:56 -0000 From: "daniel.kruegler at googlemail dot com" 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 12:42: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: daniel.kruegler at googlemail dot com 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg02730.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65509 --- Comment #6 from Daniel Kr=C3=BCgler --- (In reply to Jakub Jelinek from comment #5) > const int i1 =3D 1; > const int i2 =3D 2; > constexpr auto b =3D &i1 =3D=3D &i2; > int main() {} >=20 > is now also rejected, when it used to be accepted. Both behavioral changes look incorrect to me. The addresses of such global objects are valid for equality comparison irrespective whether they are constexpr or not, because =3D=3D has no pre-condition: "Two pointers compare equal if they are both null, both point to the same function, or both represent the same address (3.9.2), otherwise they compare unequal." therefore we cannot fall into the exclusion bullet within 5.20 p2 "a relational (5.9) or equality (5.10) operator where the result is unspecified;" >>From gcc-bugs-return-481587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 25 11:46:15 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114637 invoked by alias); 25 Mar 2015 11:46:15 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114604 invoked by uid 48); 25 Mar 2015 11:46:12 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/65549] [5 Regression] crash in htab_hash_string with -flto Date: Wed, 25 Mar 2015 12:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: target_milestone 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/msg02731.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65549 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0