Got 6.2 and tried it. No ICE. Perhaps the bug occurs on trunk only. That is also why I don't build development versions. E:\Desktop>g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=C:/MinGW/MSYS2/mingw64/lib/gcc/x86_64-w64-mingw32/6.2.1/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../gcc/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++ --enable-shared --enable-static --enable-libatomic --enable-threads=mcf --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='gcc-6-branch HEAD with MCF thread model, built by LH_Mouse.' --with-bugurl=http://github.lhmouse.com/ --with-gnu-as --with-gnu-ld --disable-tls Thread model: mcf gcc version 6.2.1 20160822 (gcc-6-branch HEAD with MCF thread model, built by LH_Mouse.) ------------------ Best regards, lh_mouse 2016-08-22 ------------------------------------------------------------- 发件人:leon zadorin <leonleon77@xxxxxxxxx> 发送日期:2016-08-22 21:24 收件人:gcc-help 抄送: 主题:Re: GCC ICE bug with segfault... On Mon, Aug 22, 2016 at 6:58 PM, lhmouse <lh_mouse@xxxxxxx> wrote: > Unreproducible on 6.1.0 targeting either i686 or x86_64. Thanks for testing on 6.1.0 :) Just out of curiosity, which host/target triplet your gcc is configured for and what are the rest of its "configured with" options? I'm building mine on Windows 7 as x86_64-w64-mingw32 (I'll also try with recently released 6.2, but just so that I can cross-reference my config parameters with yours when I build 6.1/6.2/trunk it'd be good to know your config params/etc). > In order to make a *minimal* testcase, please remove unrelated stuff, > such as redundant `#include`s. For example, you can run > `g++ -E -o foo.cc` to get a preprocessed source file then > cut unrelated code off. Sounds good -- thanks for the advise! Kind regarsd Leon.