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: "mmitchel 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 20:11:55 -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 #5 from mmitchel at gcc dot gnu dot org 2005-10-19 20:11 -------
If you don't want to fix this in the middle-end, the right way to handle this
is in the C++ gimplifier.
At that point, create a COMPOUND_EXPR whose second argument is "*((T*) 0)" for
non-pointer types, or just "((T *) 0)" for pointer/reference types.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24439