http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
Bug ID: 58624 Summary: gcc internal compiler error: Segmentaion fault Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dimitry.ivanov at gmail dot com Created attachment 30955 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30955&action=edit preprocessed file gcc 4.8.1 segfaults while compiling code with templated static thread_local storage. Compiler output: $ gcc -v -std=c++0x -save-temps test.cpp Reading specs from /usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/specs COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/gcc/4.8.1/libexec/gcc/x86_64-redhat-linux-gnu/4.8.1/lto-wrapper Target: x86_64-redhat-linux-gnu Configured with: ./configure --prefix=/usr/local/gcc/4.8.1 --build=x86_64-redhat-linux-gnu --libdir=/usr/lib64 --with-slibdir=/usr/lib64 --enable-version-specific-runtime-libs --enable-threads --enable-static --enable-languages=c,c++ --disable-multilib --with-cloog=/tmp/gcc-deps --enable-cloog-backend=isl --disable-cloog-version-check Thread model: posix gcc version 4.8.1 (GCC) COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-save-temps' '-mtune=generic' '-march=x86-64' /usr/local/gcc/4.8.1/libexec/gcc/x86_64-redhat-linux-gnu/4.8.1/cc1plus -E -quiet -v -D_GNU_SOURCE test.cpp -mtune=generic -march=x86-64 -std=c++11 -fpch-preprocess -o test.ii ignoring nonexistent directory "/usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/../../../../../x86_64-redhat-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: . /pubmed_gen/Work/boost/include /usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include/c++ /usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include/c++/x86_64-redhat-linux-gnu /usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include/c++/backward /usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include /usr/local/include /usr/local/gcc/4.8.1/include /usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include-fixed /usr/include End of search list. COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-save-temps' '-mtune=generic' '-march=x86-64' /usr/local/gcc/4.8.1/libexec/gcc/x86_64-redhat-linux-gnu/4.8.1/cc1plus -fpreprocessed test.ii -quiet -dumpbase test.cpp -mtune=generic -march=x86-64 -auxbase test -std=c++11 -version -o test.s GNU C++ (GCC) version 4.8.1 (x86_64-redhat-linux-gnu) compiled by GNU C version 4.8.1, GMP version 5.1.2, MPFR version 3.1.2, MPC version 1.0.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C++ (GCC) version 4.8.1 (x86_64-redhat-linux-gnu) compiled by GNU C version 4.8.1, GMP version 5.1.2, MPFR version 3.1.2, MPC version 1.0.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 4dcc0c9a463b0607e2149021eec6a2a8 test.cpp: In function 'std::unique_ptr<std::basic_string<char> >& _ZTWN1AIT_E1sE()': test.cpp:10:18: internal compiler error: Segmentation fault if (!s) { ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.