------- Comment #10 from rguenth at gcc dot gnu dot org 2005-10-19 21:51 ------- Ok, I'll see how big the middle-end change would get. The easiest way would be to change invert_truthvalue to ignore void types and do nothing for them. Like
+ if (VOID_TYPE_P (TREE_TYPE (arg))) + return arg; gcc_assert (TREE_CODE (TREE_TYPE (arg)) == BOOLEAN_TYPE); return build1 (TRUTH_NOT_EXPR, type, arg); but auditing all other places we look at COND_EXPR is a big task. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24439