public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-59349-4@http.gcc.gnu.org/bugzilla/> (raw)

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 <http://gcc.gnu.org/bugs.html> for instructions.
0.07user 0.02system 0:00.10elapsed 98%CPU (0avgtext+0avgdata 57264maxresident)k
0inputs+0outputs (0major+15582minor)pagefaults 0swaps


             reply	other threads:[~2013-11-29 21:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-29 21:23 dimhen at gmail dot com [this message]
2013-11-29 21:34 ` [Bug c++/59349] [4.9 Regression] " mpolacek at gcc dot gnu.org
2013-12-10  7:48 ` jakub at gcc dot gnu.org
2013-12-19 15:37 ` rguenth at gcc dot gnu.org
2013-12-23 20:05 ` jason at gcc dot gnu.org
2013-12-24  4:22 ` jason at gcc dot gnu.org
2013-12-27 21:53 ` jason at gcc dot gnu.org
2013-12-30 21:41 ` reichelt at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-59349-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).