[cfe-dev] Crash during template instantiation

Christopher Weaver chris.weaver at icecube.wisc.edu
Tue Aug 31 09:07:08 PDT 2010


On Aug 30, 2010, at 11:46 PM, Douglas Gregor wrote:

> 
> 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

Filed as bug 8039. 

	Chris Weaver



More information about the cfe-dev mailing list