This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17655] [3.4 regression] ICE with using a C99 initializer in an if-condition
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2005 22:17:11 -0000
- Subject: [Bug c++/17655] [3.4 regression] ICE with using a C99 initializer in an if-condition
- References: <20040924154023.17655.vitaly@users.mns.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2005-07-25 22:17 -------
Downgrading to normal. This is a bug in a C++ extension (borrowed from C99)
which has been broken since 3.0.
The bug appears to be in the FINISH_COND macro which does not seem ready to
handle the additional TAG_DEFN tree which appeared in the statement list. The
result is that the IF_STMT is built with TAG_DEFN as condition (and the real
condition is lost!). But I'm clueless about how this should be fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17655