http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53321
--- Comment #10 from Uros Bizjak <ubizjak at gmail dot com> 2012-05-26 10:09:35 UTC --- Reduced testcase: --cut here-- typedef long unsigned int size_t; extern "C" { extern void *memcpy (void *__dest, __const void *__src, size_t __n); } extern char *src, *sources; extern int n_sources; static void find_source (const char *file_name) { memcpy (src, sources, n_sources * sizeof (*sources)); } extern const char *gcov_read_string (void); static void read_graph_file (void) { find_source (gcov_read_string ()); } static void process_file (void) { read_graph_file (); } int main () { process_file (); } --cut here-- ~/gcc-build/gcc/cc1plus -O2 -fprofile-generate -quiet t.C t.C:32:1: internal compiler error: vector VEC(inline_edge_summary_t,base) index domain error, in inline_edge_summary at ipa-inline.h:200 } ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.