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++/43831] [C++0x] gcc-4.5.0 does not fail invalid lambda captures (against n3092 5.1.2/8)


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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-20 14:39:48 UTC ---
Author: jason
Date: Mon Jun 20 14:39:44 2011
New Revision: 175211

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175211
Log:
    PR c++/43831
    * parser.c (cp_parser_lambda_introducer): Complain about redundant
    captures.
    * semantics.c (add_capture): Likewise.
    (register_capture_members): Clear IDENTIFIER_MARKED.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-redundancy.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/semantics.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]