You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[expr.const] (5.2) disallows "a control flow that passes through a declaration of a variable with static (6.7.5.2) or thread (6.7.5.3) storage duration;"
But the restriction is unnecessary if the variable can be constant initialized.
This causes difficulties when implementing P2291R3, "Add Constexpr Modifiers to Functions to_chars and from_chars for Integral Types in <charconv> Header".
Allow local static variables in constant expressions, if they are constant-initialized.