[Bug c++/87372] [9 Regression] __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 21 18:47:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Sep 21 18:45:59 2018
New Revision: 264489

URL: https://gcc.gnu.org/viewcvs?rev=264489&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/func_constexpr2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list