OSDN Git Service

PR c++/53826
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jul 2012 14:11:16 +0000 (14:11 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jul 2012 14:11:16 +0000 (14:11 +0000)
* tree.c (build_zero_cst): Handle NULLPTR_TYPE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@189387 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree.c

index 4981f0e..8d9ad75 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-09  Jason Merrill  <jason@redhat.com>
+
+       PR c++/53826
+       * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
+
 2012-07-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
        * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
index be7cb45..9624357 100644 (file)
@@ -1617,7 +1617,7 @@ build_zero_cst (tree type)
     {
     case INTEGER_TYPE: case ENUMERAL_TYPE: case BOOLEAN_TYPE:
     case POINTER_TYPE: case REFERENCE_TYPE:
-    case OFFSET_TYPE:
+    case OFFSET_TYPE: case NULLPTR_TYPE:
       return build_int_cst (type, 0);
 
     case REAL_TYPE: