Re: [PATCH] c++: Fix up erroneous template error recovery ICE [PR117826]

2024-12-03 Thread Jason Merrill
On 12/3/24 3:42 AM, Jakub Jelinek wrote: Hi! The testcase in the PR (which can't be easily reduced and is way too large and has way too many errors) results in an ICE, because the erroneous_templates hash_map holds trees of erroneous templates across ggc_collect and some of the templates in ther

[PATCH] c++: Fix up erroneous template error recovery ICE [PR117826]

2024-12-03 Thread Jakub Jelinek
Hi! The testcase in the PR (which can't be easily reduced and is way too large and has way too many errors) results in an ICE, because the erroneous_templates hash_map holds trees of erroneous templates across ggc_collect and some of the templates in there could be removed, so the later lookup can