Got ICE with latest cvs (but also with 4.0.1 release) on this code: ------------------------------- #include <stdexcept> void foo(bool b) { throw b ? std::logic_error("") : std::logic_error(""); } -------------------------------
Preprocessed file: http://napalm.sf.cz/throw.ii.gz ICE: # g++ ./throw.cpp <with_cleanup_expr 0xb7367de0>./throw.cpp: In function 'void foo(bool)': ./throw.cpp:5: internal compiler error: unexpected node Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. Version: # g++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc/configure --enable-shared --enable-threads=posix --enable-languages=c,c++ Thread model: posix gcc version 4.2.0 20051123 (experimental) -- Summary: ICE on throw code Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jan dot dvorak at kraxnet dot cz GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24996