This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/58566] [c++11] ICE with invalid expression in lambda body


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58566

--- Comment #6 from ville at gcc dot gnu.org ---
Author: ville
Date: Mon Oct 12 08:55:19 2015
New Revision: 228706

URL: https://gcc.gnu.org/viewcvs?rev=228706&root=gcc&view=rev
Log:
PR c++/58566

/cp
2015-10-12  Ville Voutilainen  <ville.voutilainen@gmail.com>

        PR c++/58566
        * lambda.c (lambda_return_type): Return error_mark_node
        instead of void_type_node for the error cases.

/testsuite
2015-10-12  Ville Voutilainen  <ville.voutilainen@gmail.com>

        PR c++/58566
        * g++.dg/cpp0x/lambda/lambda-58566.C: New.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]