[Bug c++/87506] [7/8 Regression] ICE with inherited constexpr constructor with const argument

2019-01-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87506

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Tue Jan  8 10:12:22 2019
New Revision: 267699

URL: https://gcc.gnu.org/viewcvs?rev=267699=gcc=rev
Log:
Backported from mainline
2018-12-07  Jakub Jelinek  

PR c++/87506
* constexpr.c (adjust_temp_type): Handle EMPTY_CLASS_EXPR.

* g++.dg/cpp0x/constexpr-87506.C: New test.

Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-87506.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/constexpr.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug c++/87506] [7/8 Regression] ICE with inherited constexpr constructor with const argument

2018-12-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87506

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[7/8/9 Regression] ICE with |[7/8 Regression] ICE with
   |inherited constexpr |inherited constexpr
   |constructor with const  |constructor with const
   |argument|argument

--- Comment #4 from Jakub Jelinek  ---
Fixed for GCC9+ so far.