[cfe-dev] Clang crashes with -fdelayed-template-parsing for specialized function templates.
David Majnemer
david.majnemer at gmail.com
Thu Aug 29 20:55:43 PDT 2013
I've reduced your example and filed it as a bug here:
http://llvm.org/bugs/show_bug.cgi?id=17040
Your observed crash is caused by a bogus AST which will obviously cause
CodeGen to fail.
On Thu, Aug 29, 2013 at 8:19 AM, bcosmo.kramer <bcosmo.kramer at gmail.com>wrote:
> Issue: clang ver 3.2 crashes when I pass -fdelayed-template-parsing flag.
> If
> I don't pass the flag it compiles fine. Is this a known issue? (I searched
> for this issue but I could have missed it. Please accept apologies if this
> is already discussed in some thread).
>
> Code:
> struct T1
> {
>
> };
>
> struct T2
> {
>
> };
>
> class Alpha
> {
> public:
> template<class T> void Foo() { }
> template<> void Foo<T1>() { }
> };
>
> int main1()
> {
> Alpha a;
> a.Foo<T2>(); // No crash
> a.Foo<T1>(); // specialized template. clang crashes on passing
> -fdelayed-template-parsing.
> }
>
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/Clang-crashes-with-fdelayed-template-parsing-for-specialized-function-templates-tp4034120.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130829/d67af5d8/attachment.html>
More information about the cfe-dev
mailing list