Open
Description
clang used to flag this as undefined behavior:
#include <limits>
void foo() {
constexpr double d2 = std::numeric_limits<double>::max();
constexpr float f = d2;
}
back in clang-8 but it has not since: https://godbolt.org/z/5K1da874d
Based on conv.double p1 I think this is still UB.