[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 17 21:40:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Dec 17 21:40:14 2019
New Revision: 279470
URL: https://gcc.gnu.org/viewcvs?rev=279470&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/diag3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list