The following code crashes deep inside the standard library:
#include <set>
#include <vector>
struct Parent
{
std::set<int> v;
};
struct Child : public Parent
{
Child() = default;
};
int main()
{
std::vector<Child> v{ {} };
}
but if the constructor is explicitly declared (without = default), it doesn't crash. I don't understand why. I'm using VS2019.