------- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-14 00:40 ------- This fixes it for me (but I don't have time to test it): Index: typeck.c =================================================================== --- typeck.c (revision 115413) +++ typeck.c (working copy) @@ -3984,7 +3984,7 @@ build_unary_op (enum tree_code code, tre else if (!(arg = build_expr_type_conversion (WANT_INT | WANT_ENUM, arg, true))) errstring = "wrong type argument to bit-complement"; - else if (!noconvert) + else if (!noconvert && CP_INTEGRAL_TYPE_P (TREE_TYPE (arg))) arg = perform_integral_promotions (arg); break;
-- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-07-14 00:40:19 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28302