Re: [PATCH] c++: Don't emit deprecated warnings or unavailable errors on lambda declarations

2022-05-03 Thread Jason Merrill via Gcc-patches
On 5/2/22 07:11, Jakub Jelinek wrote: Hi! On the following testcase, we emit deprecated warnings or unavailable errors even on merge declarations of those lambdas (the dg-bogus directives), while IMHO we should emit them only when something actually calls those lambdas. The following patch

[PATCH] c++: Don't emit deprecated warnings or unavailable errors on lambda declarations

2022-05-02 Thread Jakub Jelinek via Gcc-patches
Hi! On the following testcase, we emit deprecated warnings or unavailable errors even on merge declarations of those lambdas (the dg-bogus directives), while IMHO we should emit them only when something actually calls those lambdas. The following patch temporarily disables that diagnostics