------- Comment #7 from pinskia at gcc dot gnu dot org 2006-12-31 16:49 ------- (In reply to comment #5) > (that needs to read > > return fold_build1 (BIT_NOT_EXPR, type, op1);
No it should read: return fold_build1 (BIT_NOT_EXPR, type, fold_convert (type, arg1) ); There are a couple more issues like this in fold-const.c with BIT_NOT_EXPR folding. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30338