clad icon indicating copy to clipboard operation
clad copied to clipboard

Remove the calls to PerformPendingInstantiations prematurely.

Open vgvassilev opened this issue 5 months ago • 0 comments

While differentiating we are calling Sema::PerformPendingInstantiations which eagerly instantiates pending templates. We do this because we want to make sure if we differentiate a templated function it has a body. However, that may lead to recursive parsing on Windows where the template instantiation can be connected to additional required parsing. In turn that is problematic for Clang because it expects the state of the compiler to be at the global scope.

vgvassilev avatar Feb 08 '24 19:02 vgvassilev