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

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