This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24439] [3.4/4.0/4.1 Regression] ICE with invert conditional containing throw



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]