From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73129 invoked by alias); 9 Jun 2015 18:15:56 -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 73045 invoked by uid 48); 9 Jun 2015 18:15:52 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/66163] [6 Regression] Not working Firefox built with LTO Date: Tue, 09 Jun 2015 18:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at ucw dot cz X-Bugzilla-Target-Milestone: 6.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-06/txt/msg00855.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66163 --- Comment #14 from Martin Li=C5=A1ka --- (In reply to Jan Hubicka from comment #13) > Great, do you have patch? > Honza Yes, I've suggested a patch here: https://bugzilla.mozilla.org/show_bug.cgi?id=3D1167119 Let's see if it will be accepted by Mozilla folks. Anyway, the GCC revision where you made VRP more aggressive works, but ther= e's a different revision that causes a segfault. I will bisect it. Martin >>From gcc-bugs-return-488524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 09 18:39:58 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74074 invoked by alias); 9 Jun 2015 18:39:58 -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 74054 invoked by uid 48); 9 Jun 2015 18:39:55 -0000 From: "richard-gccbugzilla at metafoo dot co.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66477] New: [constexpr] accepts-invalid with constexpr member call on non-constant reference Date: Tue, 09 Jun 2015 18:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: richard-gccbugzilla at metafoo dot co.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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-06/txt/msg00856.txt.bz2 Content-length: 783 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66477 Bug ID: 66477 Summary: [constexpr] accepts-invalid with constexpr member call on non-constant reference Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: richard-gccbugzilla at metafoo dot co.uk Target Milestone: --- GCC accepts this invalid code: struct a { constexpr int size() const { return 3; } }; void f(a &r) { static_assert(r.size() == 3, "error"); } The static_assert condition is non-constant because it mentions the reference 'r' whose referent is not known within that constant expression.