On 12/19/18 6:12 PM, Jakub Jelinek wrote:
Hi!
On Tue, Dec 18, 2018 at 05:29:41PM -0500, Jason Merrill wrote:
So, we end up calling ggc_collect because we're processing a member function
in a context where defining a type is not allowed. One solution would be to
not do late parsing of members in such a context.
We don't have this problem with lambdas because cp_parser_lambda_body
already increments function_depth to avoid GC in the middle of an
expression.
So like this? We already have similar treatment for error-recovery
if template arguments are erroneous.
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
OK.
Jason