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
void f();
constexpr auto p1 = (void*)f;
constexpr auto p2 = (void(*)())p1;
clang currently accepts, but these should be rejected. [expr.const] says an expression is not a constant expression if it contains a reinterpret_cast ... and converting a function pointer to an object pointer requires a reinterpret_cast.