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

--- Comment #6 from ville at gcc dot gnu.org ---
Author: ville
Date: Tue Aug  7 13:46:16 2018
New Revision: 263357

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

gcc/cp/

PR c++/79133
* name-lookup.c (check_local_shadow): Reject captures and parameters
with the same name.

testsuite/

PR c++/79133
* g++.dg/cpp0x/lambda/lambda-shadow3.C: New.
* g++.dg/cpp1y/lambda-generic-variadic18.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-shadow3.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic18.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c

Reply via email to