From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22059 invoked by alias); 29 Nov 2013 21:23:55 -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 22036 invoked by uid 48); 29 Nov 2013 21:23:52 -0000 From: "dimhen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336 Date: Fri, 29 Nov 2013 21:23: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.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimhen at gmail dot com 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: 2013-11/txt/msg03078.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59349 Bug ID: 59349 Summary: ICE on invalid: Segmentation fault toplev.c:336 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com $ uname -a Linux dim.cp.ru 3.11.9-200.fc19.x86_64 #1 SMP Wed Nov 20 21:22:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /home/dimhen/src/gcc_current/configure --prefix=/usr/local/gcc_current --with-multilib-list=m64 --enable-checking=yes,df,fold,rtl,tree --enable-languages=c,c++,lto --enable-plugin --with-tune=native --with-arch=native --enable-version-specific-runtime-libs Thread model: posix gcc version 4.9.0 20131129 (experimental) [trunk revision 205527] (GCC) $ cat x.ii fn1 () { <: __assert_fail () $ g++ -fpreprocessed -fsyntax-only -c x.ii x.ii:1:6: error: ISO C++ forbids declaration of 'fn1' with no type [-fpermissive] fn1 () ^ x.ii: In function 'int fn1()': x.ii:4:5: warning: lambda capture initializers only available with -std=c++1y or -std=gnu++1y [enabled by default] __assert_fail () ^ x.ii:4:20: internal compiler error: Segmentation fault __assert_fail () ^ 0xcdbbef crash_signal /home/dimhen/src/gcc_current/gcc/toplev.c:336 0x830dfd add_capture(tree_node*, tree_node*, tree_node*, bool, bool) /home/dimhen/src/gcc_current/gcc/cp/lambda.c:445 0x73f2e5 cp_parser_lambda_introducer /home/dimhen/src/gcc_current/gcc/cp/parser.c:8919 0x73f2e5 cp_parser_lambda_expression /home/dimhen/src/gcc_current/gcc/cp/parser.c:8654 0x73f2e5 cp_parser_primary_expression /home/dimhen/src/gcc_current/gcc/cp/parser.c:4309 0x741ff9 cp_parser_postfix_expression /home/dimhen/src/gcc_current/gcc/cp/parser.c:5908 0x7447d9 cp_parser_unary_expression /home/dimhen/src/gcc_current/gcc/cp/parser.c:7109 0x74541f cp_parser_binary_expression /home/dimhen/src/gcc_current/gcc/cp/parser.c:7813 0x745921 cp_parser_assignment_expression /home/dimhen/src/gcc_current/gcc/cp/parser.c:8051 0x7478a4 cp_parser_expression /home/dimhen/src/gcc_current/gcc/cp/parser.c:8213 0x7480de cp_parser_expression /home/dimhen/src/gcc_current/gcc/cp/parser.c:8252 0x7480de cp_parser_expression_statement /home/dimhen/src/gcc_current/gcc/cp/parser.c:9551 0x73dd88 cp_parser_statement /home/dimhen/src/gcc_current/gcc/cp/parser.c:9402 0x73eb39 cp_parser_statement_seq_opt /home/dimhen/src/gcc_current/gcc/cp/parser.c:9674 0x73eca6 cp_parser_compound_statement /home/dimhen/src/gcc_current/gcc/cp/parser.c:9628 0x7521ab cp_parser_function_body /home/dimhen/src/gcc_current/gcc/cp/parser.c:18544 0x7521ab cp_parser_ctor_initializer_opt_and_function_body /home/dimhen/src/gcc_current/gcc/cp/parser.c:18580 0x75656e cp_parser_function_definition_after_declarator /home/dimhen/src/gcc_current/gcc/cp/parser.c:22612 0x75742d cp_parser_function_definition_from_specifiers_and_declarator /home/dimhen/src/gcc_current/gcc/cp/parser.c:22524 0x75742d cp_parser_init_declarator /home/dimhen/src/gcc_current/gcc/cp/parser.c:16522 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. 0.07user 0.02system 0:00.10elapsed 98%CPU (0avgtext+0avgdata 57264maxresident)k 0inputs+0outputs (0major+15582minor)pagefaults 0swaps