I get the following ICE with G+ 4.1.0 and 4.2 snapshot on i386 and powerpc (but not on amd64). It works fine with 4.0 or without -O2.
(sid)596:[EMAIL PROTECTED]: ~] g++-4.1 -c -O2 ./mini.c ./mini.c: In member function void studio::Duckmatic::add_duck(const etl::handle<studio::Duck>&): ./mini.c:146: internal compiler error: in get_indirect_ref_operands, at tree-ssa-operands.c:1515 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>. Preprocessed source stored into /tmp/ccyhhm9Y.out file, please attach this to your bugreport. zsh: exit 1 g++-4.1 -c -O2 ./mini.c (sid)597:[EMAIL PROTECTED]: ~] g++-4.1 -c ./mini.c (sid)598:[EMAIL PROTECTED]: ~] -- Summary: [4.1/4.2 regression] ICE in get_indirect_ref_operands, at tree-ssa-operands.c:1515 Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tbm at cyrius dot com GCC build triplet: i486-linux-gnu GCC host triplet: i486-linux-gnu GCC target triplet: i486-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27218