This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79639] [6 Regression] ICE with -O and constexpr
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 May 2017 21:30:41 +0000
- Subject: [Bug c++/79639] [6 Regression] ICE with -O and constexpr
- Auto-submitted: auto-generated
- References: <bug-79639-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79639
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri May 5 21:30:03 2017
New Revision: 247674
URL: https://gcc.gnu.org/viewcvs?rev=247674&root=gcc&view=rev
Log:
Backported from mainline
2017-02-21 Jakub Jelinek <jakub@redhat.com>
PR c++/79639
* constexpr.c (cxx_eval_store_expression): If *valp is a PTRMEM_CST,
call cplus_expand_constant on it first.
* g++.dg/cpp1y/constexpr-79639.C: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-79639.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/constexpr.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog