This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85113] [7/8 Regression] ICE with __builtin_constant_p
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Apr 2018 19:14:35 +0000
- Subject: [Bug c++/85113] [7/8 Regression] ICE with __builtin_constant_p
- Auto-submitted: auto-generated
- References: <bug-85113-4@http.gcc.gnu.org/bugzilla/>
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