[cfe-dev] Crash during template instantiation

Douglas Gregor dgregor at apple.com
Mon Aug 30 21:46:22 PDT 2010


On Aug 30, 2010, at 8:41 PM, Christopher Weaver wrote:

> While playing around with the newest version of Boost.Thread (which I was hoping but not entirely expecting to fully work) I stumbled across something which made clang crash. After multidelta finished with my input I'm not sure that it's still the same crash at all, but it is a crash, so I thought I'd report it. Here's the condensed test case which produces it:
> 
> $ cat crash_test3.ii
> template <typename T>
> class foo{
> 	undefined_type a;
> 	public:
> 	foo():a(T()){}
> };
> 
> int main(){
> 	foo<int> f;
> 	return(0);
> }

Great, could you file a bug against Clang C++ at http://llvm.org/bugs/?

	- Doug



More information about the cfe-dev mailing list