public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336
@ 2013-11-29 21:23 dimhen at gmail dot com
  2013-11-29 21:34 ` [Bug c++/59349] [4.9 Regression] " mpolacek at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dimhen at gmail dot com @ 2013-11-29 21:23 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59349] [4.9 Regression] ICE on invalid: Segmentation fault toplev.c:336
  2013-11-29 21:23 [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336 dimhen at gmail dot com
@ 2013-11-29 21:34 ` mpolacek at gcc dot gnu.org
  2013-12-10  7:48 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-11-29 21:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59349

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-11-29
                 CC|                            |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |4.9.0
            Summary|ICE on invalid:             |[4.9 Regression] ICE on
                   |Segmentation fault          |invalid: Segmentation fault
                   |toplev.c:336                |toplev.c:336
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59349] [4.9 Regression] ICE on invalid: Segmentation fault toplev.c:336
  2013-11-29 21:23 [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336 dimhen at gmail dot com
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-12-10  7:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59349

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
int foo () { <: bar ()
ICEs without any earlier errors, unlike the original testcase.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59349] [4.9 Regression] ICE on invalid: Segmentation fault toplev.c:336
  2013-11-29 21:23 [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336 dimhen at gmail dot com
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-12-19 15:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59349

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59349] [4.9 Regression] ICE on invalid: Segmentation fault toplev.c:336
  2013-11-29 21:23 [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336 dimhen at gmail dot com
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2013-12-23 20:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59349

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59349] [4.9 Regression] ICE on invalid: Segmentation fault toplev.c:336
  2013-11-29 21:23 [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336 dimhen at gmail dot com
                   ` (3 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2013-12-24  4:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59349

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Dec 24 04:22:15 2013
New Revision: 206192

URL: http://gcc.gnu.org/viewcvs?rev=206192&root=gcc&view=rev
Log:
    PR c++/59349
    * parser.c (cp_parser_lambda_introducer): Handle empty init.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59349] [4.9 Regression] ICE on invalid: Segmentation fault toplev.c:336
  2013-11-29 21:23 [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336 dimhen at gmail dot com
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2013-12-27 21:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59349

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59349] [4.9 Regression] ICE on invalid: Segmentation fault toplev.c:336
  2013-11-29 21:23 [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336 dimhen at gmail dot com
                   ` (5 preceding siblings ...)
  2013-12-27 21:53 ` jason at gcc dot gnu.org
@ 2013-12-30 21:41 ` reichelt at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-12-30 21:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59349

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu.org

--- Comment #5 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
*** Bug 58613 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-12-30 21:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-29 21:23 [Bug c++/59349] New: ICE on invalid: Segmentation fault toplev.c:336 dimhen at gmail dot com
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

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).