Re: [PATCH] c++: Fix ICE on PTRMEM_CST in lambda in inline var initializer [PR99790]

2021-03-30 Thread Jason Merrill via Gcc-patches
On 3/30/21 5:38 AM, Jakub Jelinek wrote: Hi! The following testcase ICEs (since the addition of inline var support), because the lambda contains PTRMEM_CST but finish_function is called for the lambda quite early during parsing it (from finish_lambda_function) when the containing class is still

[PATCH] c++: Fix ICE on PTRMEM_CST in lambda in inline var initializer [PR99790]

2021-03-30 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs (since the addition of inline var support), because the lambda contains PTRMEM_CST but finish_function is called for the lambda quite early during parsing it (from finish_lambda_function) when the containing class is still incomplete. That means that during generic