re PR c++/59655 (incorrect diagnostic on templatized function with lambda parameter)
authorJakub Jelinek <jakub@redhat.com>
Tue, 17 Dec 2019 21:40:14 +0000 (22:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 Dec 2019 21:40:14 +0000 (22:40 +0100)
commit775670d792fb8ff314ed519ff295583ab31d90ef
tree94943061d740b279a0ec3ea2703b678fad5b23f8
parent7c32b0d5ccd3dcd0358f4fa2207713754b768649
re PR c++/59655 (incorrect diagnostic on templatized function with lambda parameter)

PR c++/59655
* pt.c (push_tinst_level_loc): If limit_bad_template_recursion,
set TREE_NO_WARNING on tldcl.
* decl2.c (no_linkage_error): Treat templates with TREE_NO_WARNING
as defined during error recovery.

* g++.dg/cpp0x/diag3.C: New test.

From-SVN: r279470
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/diag3.C [new file with mode: 0644]