This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/83993] [7/8 Regression] ICE: constant not recomputed when ADDR_EXPR changed


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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jan 31 20:46:36 2018
New Revision: 257265

URL: https://gcc.gnu.org/viewcvs?rev=257265&root=gcc&view=rev
Log:
        PR c++/83993
        * constexpr.c (cxx_eval_outermost_constant_expr): Build NOP_EXPR
        around non-constant ADDR_EXPRs rather than clearing TREE_CONSTANT
        on ADDR_EXPR.

        * g++.dg/init/pr83993-2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/init/pr83993-2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]