https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78774
Bug ID: 78774 Summary: Internal compiler error segmentation fault: constexpr string literals and templates Product: gcc Version: 6.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rush at rushbase dot net Target Milestone: --- Created attachment 40310 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40310&action=edit Breaking code The sample code works well in GCC 4 and 5. It breaks at least in 6.2.0 and 6.2.1 and both in openSUSE and Ubuntu. I would appreciate some workaround tips until the issue is fixed. rush@rushpod: ~/c/cortex [master] » g++-6 -v Using built-in specs. COLLECT_GCC=g++-6 COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/6/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada,go --enable-offload-targets=hsa --enable-checking=release --with-gxx-include-dir=/usr/include/c++/6 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --enable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-6 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux Thread model: posix gcc version 6.2.1 20160830 [gcc-6-branch revision 239856] (SUSE Linux) rush@rushpod: ~/c/cortex [master] » g++-6 -std=c++11 -Wall -Wextra test.ii test.hpp: In substitution of ‘template<char ENDING, char ...Args> template<const char* const* Ptr> using explode = typename impl::ops<ENDING, Args>::explode_<(* * Ptr), 0, Ptr>::list [with const char* const* Ptr = (& format_m<Ts>::fmt); char ENDING = '\000'; char ...Args = {}]’: test.hpp:25:54: required from here test.hpp:14:56: internal compiler error: Segmentation fault using explode = typename explode_<**Ptr, 0, Ptr>::list; ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.opensuse.org/> for instructions.