From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21633 invoked by alias); 27 Mar 2014 16:32:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21606 invoked by uid 48); 27 Mar 2014 16:32:31 -0000 From: "FBergemann at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60687] New: [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function Date: Thu, 27 Mar 2014 16:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: FBergemann at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg02518.txt.bz2 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 for instructions. make: *** [main.o] Error 4