http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436
--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Uroš Bizjak from comment #0) > Created attachment 31403 [details] > Preprocessed source > > Attached testcase randomly fails to compile. Following valgrind error was > obtained on x86_64-pc-linux-gnu: > > $ valgrind /ssd/uros/gcc-build/gcc/cc1plus -g -O2 -std=gnu++0x > -fpreprocessed -quiet stdc++.ii > ==10906== Memcheck, a memory error detector > ==10906== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. > ==10906== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info > ==10906== Command: /ssd/uros/gcc-build/gcc/cc1plus -g -O2 -std=gnu++0x > -fpreprocessed -quiet stdc++.ii > ==10906== > ==10906== Invalid read of size 2 > ==10906== at 0x87F8FB: rtl_for_decl_init(tree_node*, tree_node*) > (dwarf2out.c:15183) (gdb) r Starting program: /ssd/uros/gcc-build/gcc/cc1plus -g -O2 -std=gnu++0x -fpreprocessed -quiet stdc++.ii Program received signal SIGSEGV, Segmentation fault. 0x000000000087f8fb in rtl_for_decl_init (init=init@entry=0x100139a078, type=type@entry=0x101) at /home/uros/gcc-svn/trunk/gcc/dwarf2out.c:15183 15183 if (TREE_CODE (init) == STRING_CST && TREE_CODE (type) == ARRAY_TYPE) (gdb) p init $1 = (tree) 0x100139a078 (gdb) p type $2 = (tree_node *) 0x101 (gdb)