http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55639
Michael Veksler <veksler at il dot ibm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veksler at il dot ibm.com --- Comment #2 from Michael Veksler <veksler at il dot ibm.com> 2012-12-10 14:18:07 UTC --- I have a possibly similar test case (can someone confirm if my case is a DUP?). --- t.cpp -- template <typename T> struct A { template <int a> struct B; }; template <typename T> struct A<T>::template B<0> { int foo(); }; ---- end -- $ /opt/gcc4.7.2/bin/g++ t.cpp t.cpp:8:23: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. $/opt/gcc4.7.2/bin/g++ -v Using built-in specs. COLLECT_GCC=/opt/gcc4.7.2/bin/g++ COLLECT_LTO_WRAPPER=/opt/gcc4.7.2/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.7.2/configure --prefix=/opt/gcc4.7.2 Thread model: posix gcc version 4.7.2 (GCC)