]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/tree.c
call.c (null_ptr_cst_p): Use maybe_constant_value.
[thirdparty/gcc.git] / gcc / cp / tree.c
index 511730aaa8f44510e7f243733cd0ee0210f142ab..e55b5bc6f2a50f608ebb889633d1bfa49785fe00 100644 (file)
@@ -3235,6 +3235,7 @@ bool
 cast_valid_in_integral_constant_expression_p (tree type)
 {
   return (INTEGRAL_OR_ENUMERATION_TYPE_P (type)
+         || cxx_dialect >= cxx0x
          || dependent_type_p (type)
          || type == error_mark_node);
 }