<div dir="ltr">Hi All,<div><br></div><div>I've discovered a rather nasty issue with -fdelayed-template-parsing enabled. If this is used to build a PCH all of the stored template tokens are lost leading an incomplete AST when the PCH is used to create the complete TU.</div>
<div><br></div><div>Is this by design or a missing feature for the serialization code?</div><div><br></div><div>Unfortunately, due to a huge body of MSVC targeted code and a need to use PCH files to maintain acceptable performance I need to make this work seamlessly. The data that would need preserving is currently stored in the Parser and is a map of <span class="">const</span><span class=""> </span>FunctionDecl<span class="">* to </span>LateParsedTemplatedFunction<span class="">*. The </span>LateParsedTemplatedFunction is essentially a SmallVector of Tokens.</div>
<div><br></div><div>Before I dive in and attempt to add support for serializing this, is there anything I should know?</div><div><br></div><div>Cheers,</div><div>Will.</div>







<div><br>-- <br><div dir="ltr"><div><span style="background-color:rgb(255,255,255);color:rgb(68,68,68);font-family:Arial,Helvetica,sans-serif"><b>Indefiant Ltd.</b></span></div></div>
</div></div>