Re: [PATCH 1/2] c++: make manifestly_const_eval tri-state

2023-02-03 Thread Patrick Palka via Gcc-patches
DECL_P (decl) > > && (TREE_STATIC (decl) || DECL_EXTERNAL (decl))); > > t = cxx_eval_outermost_constant_expr (t, allow_non_constant, > > !is_static, > > - manifestly_const_eval, false, > > decl)

Re: [PATCH 1/2] c++: make manifestly_const_eval tri-state

2023-01-30 Thread Jason Merrill via Gcc-patches
On 1/27/23 17:02, Patrick Palka wrote: This patch turns the manifestly_const_eval flag used by the constexpr machinery into a tri-state enum so that we're able to express wanting to fold __builtin_is_constant_evaluated to false via late speculative constexpr evaluation. Of all the entry points t

[PATCH 1/2] c++: make manifestly_const_eval tri-state

2023-01-27 Thread Patrick Palka via Gcc-patches
This patch turns the manifestly_const_eval flag used by the constexpr machinery into a tri-state enum so that we're able to express wanting to fold __builtin_is_constant_evaluated to false via late speculative constexpr evaluation. Of all the entry points to constexpr evaluation only maybe_constan