Re: [C++ PATCH] Improve C++ error recovery (PR c++/59655)

2019-12-17 Thread Jason Merrill
On 12/10/19 4:02 PM, Jakub Jelinek wrote: Hi! On the following testcase, we emit 2 errors and 1 warning, when the user really should see one error. The desirable error is static_assert failure, the bogus error is during error recovery, complaining that a no_linkage template isn't defined when i

C++ Patch Ping (was Re: [C++ PATCH] Improve C++ error recovery (PR c++/59655))

2019-12-17 Thread Jakub Jelinek
Hi! On Tue, Dec 10, 2019 at 10:02:47PM +0100, Jakub Jelinek wrote: > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > Or do you want to use an additional bit for that? > > 2019-12-10 Jakub Jelinek > > PR c++/59655 > * pt.c (push_tinst_level_loc): If limit_bad

[C++ PATCH] Improve C++ error recovery (PR c++/59655)

2019-12-10 Thread Jakub Jelinek
Hi! On the following testcase, we emit 2 errors and 1 warning, when the user really should see one error. The desirable error is static_assert failure, the bogus error is during error recovery, complaining that a no_linkage template isn't defined when it really is defined, but we haven't bothered