[Bug c++/79639] [6 Regression] ICE with -O and constexpr

2017-05-07 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79639

Volker Reichelt  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
  Known to work||6.3.1
 Resolution|--- |FIXED

--- Comment #7 from Volker Reichelt  ---
Fixed by Jakub's patch.

[Bug c++/79639] [6 Regression] ICE with -O and constexpr

2017-05-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79639

--- Comment #6 from Jakub Jelinek  ---
Author: jakub
Date: Fri May  5 21:30:03 2017
New Revision: 247674

URL: https://gcc.gnu.org/viewcvs?rev=247674=gcc=rev
Log:
Backported from mainline
2017-02-21  Jakub Jelinek  

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

[Bug c++/79639] [6 Regression] ICE with -O and constexpr

2017-02-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79639

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org
Summary|[6/7 Regression] ICE with   |[6 Regression] ICE with -O
   |-O and constexpr|and constexpr

--- Comment #5 from Jakub Jelinek  ---
(In reply to Jason Merrill from comment #3)
> (In reply to Jakub Jelinek from comment #2)
> > Created attachment 40805 [details]
> > gcc7-pr79639.patch
> > 
> > Untested fix.  Not really sure about it though.
> 
> Looks good.

Ok, thanks.  Fixed on the trunk so far then.