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++/85113] [7/8 Regression] ICE with __builtin_constant_p


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Apr  3 19:14:03 2018
New Revision: 259053

URL: https://gcc.gnu.org/viewcvs?rev=259053&root=gcc&view=rev
Log:
        PR c++/85113 - ICE with constexpr and __builtin_constant_p.

        * constexpr.c (cxx_eval_builtin_function_call): Only defer
        __builtin_constant_p if ctx->quiet.

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

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