https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92695
--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 20 17:32:23 2019 New Revision: 279663 URL: https://gcc.gnu.org/viewcvs?rev=279663&root=gcc&view=rev Log: Backported from mainline 2019-12-02 Jakub Jelinek <ja...@redhat.com> PR c++/92695 * constexpr.c (cxx_eval_constant_expression) <case OBJ_TYPE_REF>: Use STRIP_NOPS before checking for ADDR_EXPR. * g++.dg/cpp2a/constexpr-virtual15.C: New test. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp2a/constexpr-virtual15.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/constexpr.c branches/gcc-9-branch/gcc/testsuite/ChangeLog