When the attached code is compiled with g++ -finline -DBOUNDS_CHECK -c ion_recomb_Badnell.ii
you get /usr/local/gcc430/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/basic_string.h: In member function T& n_pointer<T, d, 1, ARPA_TYPE, true>::operator[](size_t) const [with T = t_quantumState, int d = 3]: /usr/local/gcc430/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/basic_string.h:494: internal compiler error: in expand_call_inline, at tree-inline.c:2653 Please submit a full bug report, .... g++ -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../gcc430/configure --prefix=/usr/local/gcc430 --enable-languages=c,c++,fortran Thread model: posix gcc version 4.3.0 20080201 (experimental) (GCC) I could reproduce the bug on i686-pc-linux-gnu as well. I only got it with g++ 4.3.0, not with 4.2.2, 4.1.2, or 4.0.4. PS - My apologies for the large test case. I tried to reduce it, but got totally frustrated because removing code almost invariably made the bug go away. -- Summary: ICE: in expand_call_inline, at tree-inline.c:2653 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: p dot vanhoof at oma dot be http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35149