<div dir="ltr">I've reduced your example and filed it as a bug here: <a href="http://llvm.org/bugs/show_bug.cgi?id=17040">http://llvm.org/bugs/show_bug.cgi?id=17040</a><div><br></div><div>Your observed crash is caused by a bogus AST which will obviously cause CodeGen to fail.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 29, 2013 at 8:19 AM, bcosmo.kramer <span dir="ltr"><<a href="mailto:bcosmo.kramer@gmail.com" target="_blank">bcosmo.kramer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Issue: clang ver 3.2 crashes when I pass -fdelayed-template-parsing flag. If<br>
I don't pass the flag it compiles fine. Is this a known issue? (I searched<br>
for this issue but I could have missed it. Please accept apologies if this<br>
is already discussed in some thread).<br>
<br>
Code:<br>
struct T1<br>
{<br>
<br>
};<br>
<br>
struct T2<br>
{<br>
<br>
};<br>
<br>
class Alpha<br>
{<br>
public:<br>
template<class T> void Foo() { }<br>
template<> void Foo<T1>() { }<br>
};<br>
<br>
int main1()<br>
{<br>
Alpha a;<br>
a.Foo<T2>(); // No crash<br>
a.Foo<T1>(); // specialized template. clang crashes on passing<br>
-fdelayed-template-parsing.<br>
}<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/Clang-crashes-with-fdelayed-template-parsing-for-specialized-function-templates-tp4034120.html" target="_blank">http://clang-developers.42468.n3.nabble.com/Clang-crashes-with-fdelayed-template-parsing-for-specialized-function-templates-tp4034120.html</a><br>
Sent from the Clang Developers mailing list archive at Nabble.com.<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>
</blockquote></div><br></div>