https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79176
Bug ID: 79176 Summary: ICE in mangle_decl with LTO and Os 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 40560 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40560&action=edit Test case I tried to reduce the test-case as much as possible, sorry if it is still kinda large. Same error occurs on an ARM cross-compiler toolchain so it's unrelated to openSUSE. Works fine in GCC 5. > g++ -v tileui.ii -flto -Os Using built-in specs. COLLECT_GCC=g++ 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 20161209 [gcc-6-branch revision 243481] (SUSE Linux) COLLECT_GCC_OPTIONS='-v' '-flto' '-Os' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-suse-linux/6/cc1plus -fpreprocessed tileui.ii -quiet -dumpbase tileui.ii -mtune=generic -march=x86-64 -auxbase tileui -Os -version -flto -o /tmp/cc8rrWq5.s GNU C++14 (SUSE Linux) version 6.2.1 20161209 [gcc-6-branch revision 243481] (x86_64-suse-linux) compiled by GNU C version 6.2.1 20161209 [gcc-6-branch revision 243481], GMP version 6.1.1, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C++14 (SUSE Linux) version 6.2.1 20161209 [gcc-6-branch revision 243481] (x86_64-suse-linux) compiled by GNU C version 6.2.1 20161209 [gcc-6-branch revision 243481], GMP version 6.1.1, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 5a52b00df252688dd94bc6e0ab87eb4e In file included from /home/rush/code/cortex/modules/tileui.cpp:1:0: /home/rush/code/cortex/./modules/tileui.hpp:27:26: internal compiler error: in mangle_decl, at cp/mangle.c:3659 ecppApp->setTimeout([=] { ^