https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78248
--- Comment #10 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Martin Liška from comment #8) > I've already tried running the test-case in valgrind. But I can't see the > problem :) May you please paste -S file and --verbose output? Done. What I find iteresting at the segfault is the index e: Program received signal SIGSEGV, Segmentation fault. main () at pr78248.c:16 16 d = b[e]; (gdb) p e $1 = 492 although we declare: int b[1], c = 2, d, e, f, g;