In the below code SE should determine that the type of derivedClassObj should be DerivedClass*, but it says 'name' instead.
See "PROBLEM" in the code below.
This is with 26.0.1 on Linux x64.
class BaseClass
{
BaseClass() {};
virtual void someVirtualFunc() {};
};
class DerivedClass : public BaseClass
{
};
BaseClass *funcThatReturnsBaseClassPtr()
{
return nullptr;
}
void func()
{
// PROBLEM: Do "Preview" on derivedClassObj, its type should be inferred
// to DerivedClass*, but it says 'name'
auto derivedClassObj = dynamic_cast<DerivedClass*>(funcThatReturnsBaseClassPtr());
}