http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57981
Yuhki Ogasawara <y121516 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[ICE} |gcc 4.8 is the ICE in this | |code --- Comment #1 from Yuhki Ogasawara <y121516 at gmail dot com> --- source code here: $ cat a.cpp template<class T> void f(T t, void* = 0) { } template<class T> auto g(T t) -> decltype(f(t)) { f(t); } int main() { g(0); } compile: $ g++ -std=c++11 -Wall -Wextra -pedantic a.cpp version: $ /home/Yuhki/bin/gcc4.8/bin/g++ -v Built by Equation Solution <http://www.Equation.com>. Using built-in specs. COLLECT_GCC=C:\cygwin\home\Yuhki\bin\gcc4.8\bin\g++.exe COLLECT_LTO_WRAPPER=c:/cygwin/home/yuhki/bin/gcc4.8/bin/../libexec/gcc/x86_64-w64-mingw32/4.8.1/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../gcc-4.8.1-mingw/configure --host=x86_64-w64-mingw32 --build=x86_64-unknown-linux-gnu --target=x86_64-w64-mingw32 --prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/gcc/4.8.1 --with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cross/x86_64/gcc/4.8.1 --with-gcc --with-gnu-ld --with-gnu-as --with-gmp=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/gmp --with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/mpfr --with-mpc=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/mpc --with-cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/cloog --with-isl=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/isl --enable-cloog-backend=isl --enable-targets=i686-w64-mingw32,x86_64-w64-mingw32 --enable-lto --enable-languages=c,fortran,c++ --enable-libgomp --enable-threads=win32 --enable-static --enable-shared=lto-plugin --enable-plugins --enable-ld=yes --enable-libquadmath --enable-libquadmath-support --disable-nls --disable-tls --disable-win32-registry Thread model: win32 gcc version 4.8.1 (GCC)