http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60687
Bug ID: 60687 Summary: [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: FBergemann at web dot de [g++ 4.8.0 on Red Hat Linux 6.2 or Ubuntu Linux 12.04.3] the g++ compiler is in an endless loop and has to be killed for compiling main.cpp (attached next). Then i get following error trace: /opt/gcc-4.8.0/bin/g++ -O0 -g3 -Wall -c -fmessage-length=0 -std=c++11 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp" g++: internal compiler error: Terminated (program cc1plus) 0x40cba1 execute ../../gcc/gcc.c:2822 0x40cee4 do_spec_1 ../../gcc/gcc.c:4614 0x40f865 process_brace_body ../../gcc/gcc.c:5871 0x40f865 handle_braces ../../gcc/gcc.c:5785 0x40de07 do_spec_1 ../../gcc/gcc.c:5268 0x40f865 process_brace_body ../../gcc/gcc.c:5871 0x40f865 handle_braces ../../gcc/gcc.c:5785 0x40de07 do_spec_1 ../../gcc/gcc.c:5268 0x40daff do_spec_1 ../../gcc/gcc.c:5373 0x40f865 process_brace_body ../../gcc/gcc.c:5871 0x40f865 handle_braces ../../gcc/gcc.c:5785 0x40de07 do_spec_1 ../../gcc/gcc.c:5268 0x40f865 process_brace_body ../../gcc/gcc.c:5871 0x40f865 handle_braces ../../gcc/gcc.c:5785 0x40de07 do_spec_1 ../../gcc/gcc.c:5268 0x40f865 process_brace_body ../../gcc/gcc.c:5871 0x40f865 handle_braces ../../gcc/gcc.c:5785 0x40de07 do_spec_1 ../../gcc/gcc.c:5268 0x40f865 process_brace_body ../../gcc/gcc.c:5871 0x40f865 handle_braces ../../gcc/gcc.c:5785 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. make: *** [main.o] Error 4