http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53563
Bug #: 53563 Summary: ICE in start_decl, at cp/decl.c:4427 Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: y121...@gmail.com ICE occured. source: $ cat a.cpp template<class T> struct s { template<class U> s(){} }; int main() { struct s<void>::s<void> a; } output: $ bin/gcc4.6/bin/g++ a.cpp a.cpp: In function 'int main()': a.cpp:9:26: internal compiler error: in start_decl, at cp/decl.c:4427 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. OS: Windows XP GCC version: $ bin/gcc4.6/bin/g++ -v Built by Equation Solution <http://www.Equation.com>. Using built-in specs. COLLECT_GCC=C:\cygwin\home\Yuhki\bin\gcc4.6\bin\g++.exe COLLECT_LTO_WRAPPER=c:/cygwin/home/yuhki/bin/gcc4.6/bin/../libexec/gcc/i686-pc-mingw32/4.6.3/lto-wrapper.exe Target: i686-pc-mingw32 Configured with: ../gcc-4.6.3-mingw/configure --host=i686-pc-mingw32 --build=x86_64-unknown-linux-gnu --target=i686-pc-mingw32 --prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gcc/4.6.3 --with-gcc --with-gnu-as --with-gnu-ld --with-host-libstdcxx='-lstdc++ -lsupc++ -lm' --with-ppl=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/ppl --with-cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/cloog --with-gmp=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gmp --with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpfr --with-mpc=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpc --with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cross/x86_32/gcc/4.6.3 --disable-shared --disable-nls --disable-tls --disable-win32-registry --enable-libquadmath-support --enable-libquadmath --enable-languages=c,c++,fortran --enable-libgomp --enable-threads=win32 --enable-lto --enable-static --enable-shared=lto-plugin --enable-plugins --enable-ld=yes --enable-cloog-backend=ppl Thread model: win32 gcc version 4.6.3 (GCC)