PR c++/87372 - __func__ constexpr evaluation.
authorMarek Polacek <polacek@redhat.com>
Fri, 21 Sep 2018 18:45:59 +0000 (18:45 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 21 Sep 2018 18:45:59 +0000 (18:45 +0000)
commit382955736eca482bfebe5eecdc2eb6ac5f9f0d72
treea95f55fc8c34da8c13203cd8494c4c6f4bedce25
parentedaaef601d0d6d263fba87b42d6d04c99dd23dba
PR c++/87372 - __func__ constexpr evaluation.

* constexpr.c (maybe_constant_init_1): Pass false for strict down to
cxx_eval_outermost_constant_expr.

* g++.dg/cpp1y/func_constexpr2.C: New test.

From-SVN: r264489
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/func_constexpr2.C [new file with mode: 0644]