http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49123
--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-05-23 13:56:49 UTC --- That would be Index: gcc/fold-const.c =================================================================== --- gcc/fold-const.c (revision 174066) +++ gcc/fold-const.c (working copy) @@ -5954,7 +5954,7 @@ constant_boolean_node (int value, tree t else if (type == boolean_type_node) return value ? boolean_true_node : boolean_false_node; else - return build_int_cst (type, value); + return build_int_cst_type (type, value); } which works for me as well.