re PR c++/87506 (ICE with inherited constexpr constructor with const argument)
authorJakub Jelinek <jakub@gcc.gnu.org>
Thu, 6 Dec 2018 23:25:10 +0000 (00:25 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 6 Dec 2018 23:25:10 +0000 (00:25 +0100)
commitff8ba86f447546c57e26bfab2a3437f14d6f2595
tree455976adede3be074d083b69599eb8d17a29bdc4
parent3c1eaf67e9a4a1a63ff26b24c4b1f9f1a7c58bc4
re PR c++/87506 (ICE with inherited constexpr constructor with const argument)

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

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

From-SVN: r266877
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-87506.C [new file with mode: 0644]