<div dir="ltr">Hi, I implemented the original -<span style="font-family:arial,sans-serif;font-size:13px">fdelayed-template-parsing mode and I simply did not consider PCH during the design/implementation. As it is currently this should output an error instead of creating an incomplete AST.</span><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">Feel free to add support for </span><span style="font-size:13px;font-family:arial,sans-serif">fdelayed-template-parsing + PCH.</span><span style="font-size:13px;font-family:arial,sans-serif"> </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">I never looked at the PCH part of clang so I got no advice really.</span></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jul 24, 2013 at 12:18 PM, Will Wilson <span dir="ltr"><<a href="mailto:will@indefiant.com" target="_blank">will@indefiant.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>const</span><span> </span>FunctionDecl<span>* to </span>LateParsedTemplatedFunction<span>*. 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><span class="HOEnZb"><font color="#888888">
<div><br>-- <br><div dir="ltr"><div><span style="color:rgb(68,68,68);font-family:Arial,Helvetica,sans-serif"><b>Indefiant Ltd.</b></span></div></div>
</div></font></span></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>