In C++14 is it valid to use a double in the dimension of a new expression?
Clang is correct, the key wording in [expr.new]p6 changes from the following in the C++11 draft: Every constant-expression in a noptr-new-declarator shall be an integral constant expression ([expr.const]) and evaluate to a strictly positive value. The expression in a noptr-new-declarator shall be of integral type, unscoped enumeration type, or a class type for which a … Read more