This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24439] [3.4/4.0/4.1 Regression] ICE with invert conditional containing throw
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Oct 2005 21:51:15 -0000
- Subject: [Bug c++/24439] [3.4/4.0/4.1 Regression] ICE with invert conditional containing throw
- References: <bug-24439-4066@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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