public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46124] New: ICE: tree check: expected var_decl or function_decl, have error_mark in cp_parser_lambda_declarator_opt, at cp/parser.c:7817 on invalid lambda function
@ 2010-10-21 22:48 zsojka at seznam dot cz
  2010-10-27 20:39 ` [Bug c++/46124] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-21 22:48 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE: tree check: expected var_decl or function_decl,
                    have error_mark in cp_parser_lambda_declarator_opt, at
                    cp/parser.c:7817 on invalid lambda function
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


----- testcase2.C -----
void foo() { [] () -> void (); }
-----------------------

Compiler output:
$ gcc testcase2.C -std=c++0x
testcase2.C: In function 'void foo()':
testcase2.C:1:29: error: 'operator()' declared as function returning a function
testcase2.C:1:29: internal compiler error: tree check: expected var_decl or
function_decl, have error_mark in cp_parser_lambda_declarator_opt, at
cp/parser.c:7817
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r165768 - crash
r153685 - crash
4.4 r165754 - doesn't recognise lambdas


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

* [Bug c++/46124] ICE: tree check: expected var_decl or function_decl, have error_mark in cp_parser_lambda_declarator_opt, at cp/parser.c:7817 on invalid lambda function
  2010-10-21 22:48 [Bug c++/46124] New: ICE: tree check: expected var_decl or function_decl, have error_mark in cp_parser_lambda_declarator_opt, at cp/parser.c:7817 on invalid lambda function zsojka at seznam dot cz
@ 2010-10-27 20:39 ` pinskia at gcc dot gnu.org
  2011-05-28 22:26 ` [Bug c++/46124] [C++0x] " jason at gcc dot gnu.org
  2011-05-29  0:40 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-10-27 20:39 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.27 20:39:32
     Ever Confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-27 20:39:32 UTC ---
Confirmed.


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

* [Bug c++/46124] [C++0x] ICE: tree check: expected var_decl or function_decl, have error_mark in cp_parser_lambda_declarator_opt, at cp/parser.c:7817 on invalid lambda function
  2010-10-21 22:48 [Bug c++/46124] New: ICE: tree check: expected var_decl or function_decl, have error_mark in cp_parser_lambda_declarator_opt, at cp/parser.c:7817 on invalid lambda function zsojka at seznam dot cz
  2010-10-27 20:39 ` [Bug c++/46124] " pinskia at gcc dot gnu.org
@ 2011-05-28 22:26 ` jason at gcc dot gnu.org
  2011-05-29  0:40 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-28 22:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-28 22:01:44 UTC ---
Author: jason
Date: Sat May 28 22:01:38 2011
New Revision: 174386

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174386
Log:
    PR c++/46124
    * parser.c (cp_parser_lambda_expression): Improve error recovery.
    (cp_parser_lambda_declarator_opt): Likewise.  Return bool.

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


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

* [Bug c++/46124] [C++0x] ICE: tree check: expected var_decl or function_decl, have error_mark in cp_parser_lambda_declarator_opt, at cp/parser.c:7817 on invalid lambda function
  2010-10-21 22:48 [Bug c++/46124] New: ICE: tree check: expected var_decl or function_decl, have error_mark in cp_parser_lambda_declarator_opt, at cp/parser.c:7817 on invalid lambda function zsojka at seznam dot cz
  2010-10-27 20:39 ` [Bug c++/46124] " pinskia at gcc dot gnu.org
  2011-05-28 22:26 ` [Bug c++/46124] [C++0x] " jason at gcc dot gnu.org
@ 2011-05-29  0:40 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-29  0:40 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|                            |FIXED
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.7.0

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-29 00:38:51 UTC ---
Fixed for 4.7.0.


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

end of thread, other threads:[~2011-05-29  0:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-21 22:48 [Bug c++/46124] New: ICE: tree check: expected var_decl or function_decl, have error_mark in cp_parser_lambda_declarator_opt, at cp/parser.c:7817 on invalid lambda function zsojka at seznam dot cz
2010-10-27 20:39 ` [Bug c++/46124] " pinskia at gcc dot gnu.org
2011-05-28 22:26 ` [Bug c++/46124] [C++0x] " jason at gcc dot gnu.org
2011-05-29  0:40 ` jason 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).