﻿id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc
243	Add warning for thread casts in constructors	Thierry Delisle		"When not using the thread keyword, thread casts are unsafe in constructors.

The following code for example:
{{{
struct SomeThread {
	$thread self;
	// ...
};
// ...
void ?{}( SomeThread & this, /*...*/ ) {
	((thread&)this){/*...*/};
}
}}}
leads to undefined behaviour because the constructor of 'self' will be called twice. 
We should add a warning or error for this. An easy fix would be to warn against thread casts in the constructor, but that could lead to many false positives. A better but harder approach would be to detect the case where this breaks, but that requires some amount of tracing through resolved code."	enhancement	new	minor	cfa-cc	1.0		thread cast	
