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++/77914] Wrong lambda definition accepted


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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jan 25 20:51:10 2017
New Revision: 244907

URL: https://gcc.gnu.org/viewcvs?rev=244907&root=gcc&view=rev
Log:
        PR c++/77914
        * parser.c (cp_parser_lambda_declarator_opt): Pedwarn with
        OPT_Wpedantic on lambda templates for -std=c++14 and higher.

        * g++.dg/cpp1y/lambda-generic-77914.C: New test.
        * g++.dg/cpp1y/lambda-generic-dep.C: Add -pedantic to dg-options,
        expect a warning.
        * g++.dg/cpp1y/lambda-generic-x.C: Add -Wpedantic to dg-options,
        expect warnings.
        * g++.dg/cpp1y/lambda-generic-mixed.C: Add empty dg-options.
        * g++.dg/cpp1y/pr59636.C: Likewise.
        * g++.dg/cpp1y/pr60190.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-77914.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-dep.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-mixed.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr59636.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr60190.C

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