[cfe-dev] Clang crashes with -fdelayed-template-parsing for specialized function templates.

bcosmo.kramer bcosmo.kramer at gmail.com
Thu Aug 29 08:19:21 PDT 2013


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.



More information about the cfe-dev mailing list