aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-07-03 14:10:39 -0400
committerJason Merrill <jason@gcc.gnu.org>2012-07-03 14:10:39 -0400
commitf5d306802cc5327d9ee94eeae84765dab89a0104 (patch)
tree27b3a8941c79f54da327180cc04573aed51e0144 /gcc/tree.c
parentf758c26c041a1af69b459c2f4e5d84b3383d4cd7 (diff)
downloadgcc-f5d306802cc5327d9ee94eeae84765dab89a0104.zip
gcc-f5d306802cc5327d9ee94eeae84765dab89a0104.tar.gz
gcc-f5d306802cc5327d9ee94eeae84765dab89a0104.tar.bz2
re PR c++/53826 ([alpha]: ICE in fold_convert_loc, at fold-const.c:2008)
PR c++/53826 * tree.c (build_zero_cst): Handle NULLPTR_TYPE. From-SVN: r189238
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 5aa5399..f9942fb 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -1640,7 +1640,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: