[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2019-12-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 --- Comment #9 from Jakub Jelinek --- 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_t

[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2019-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 --- Comment #8 from Jakub Jelinek --- I can confirm the #c0/#c1 case, I think #c4/#c5 are actually invalid testcases. For #c1, a slightly modified testcase where the foo call is before the static_assert rather than after it works (emits just one

[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2019-12-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 --- Comment #7 from Jonathan Wakely --- Comment 6 seems to be a different issue, so I've reported that as PR 92894

[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2019-12-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2019-03-08 00:00:00 |2019-12-10 --- Comment #6 from Jonatha

[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2019-03-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 --- Comment #5 from Jonathan Wakely --- Another testcase, this time from Bug 85936: template void f(int, a); template void g(int, a &&e, c) { f(0, [=] { e; }); } void h() { g(0, h, 0); } d.cc:1:25: error: ‘void f(int, a) [with a = g(int, a

[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2019-03-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid Last reconfirmed|2018-

[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2019-03-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 Jonathan Wakely changed: What|Removed |Added CC||lebedev.ri at gmail dot com --- Commen

[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2019-03-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 Jonathan Wakely changed: What|Removed |Added CC||raphael.kubo.da.costa@intel

[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2018-05-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Last reconfirmed|2017-10-

[Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter

2017-10-01 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59655 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|