re PR c++/88110 (ICE (segfault) with -std=C++2a in cxx_eval_constant_expression when...
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Nov 2018 22:23:12 +0000 (23:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Nov 2018 22:23:12 +0000 (23:23 +0100)
commit6a3ebcc6620cc923b8e533d6c2381db8016f3b74
treebe39030978dc66e49e9c6ef4d23b198f4d87df4b
parent260a993319bdf4ebc01298b7e802afbd3b35574a
re PR c++/88110 (ICE (segfault) with -std=C++2a in cxx_eval_constant_expression when trying to evaluate nonoverridden "virtual ... = 0" function of a base class)

PR c++/88110
* constexpr.c (cxx_eval_constant_expression) <case OBJ_TYPE_REF>: Punt
if get_base_address of ADDR_EXPR operand is not a DECL_P.

* g++.dg/cpp2a/constexpr-virtual13.C: New test.

From-SVN: r266329
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/constexpr-virtual13.C [new file with mode: 0644]