Fix consteval crash when transforming 'this' expressions
When reaching the end of a function body, we need to ensure that the ExitFunctionBodyRAII object is destroyed before we pop the declaration context for the function. Exiting the function body causes us to handle immediate invocations, which involves template transformations that need to know the correct type for this. This addresses PR48235.
Loading
Please sign in to comment