[Bug c++/83116] [6/7 Regression] Statement with no effect causes wrong code of static object constexpr method

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 19 10:03:00 GMT 2017


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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Dec 19 10:02:48 2017
New Revision: 255813

URL: https://gcc.gnu.org/viewcvs?rev=255813&root=gcc&view=rev
Log:
        PR c++/83116
        * constexpr.c (cxx_eval_call_expression): Only look into
        constexpr_call_table if ctx->strict.

        * g++.dg/cpp1y/constexpr-83116.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-83116.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/constexpr.c


More information about the Gcc-bugs mailing list