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
This commit is contained in:
Jason Merrill 2012-07-03 14:10:39 -04:00 committed by Jason Merrill
parent f758c26c04
commit f5d306802c
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-07-03 Jason Merrill <jason@redhat.com>
PR c++/53826
* tree.c (build_zero_cst): Handle NULLPTR_TYPE.
2012-07-03 Nick Clifton <nickc@redhat.com>
* config/mep/mep.c (mep_reorg_regmove): Use

View file

@ -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: