insert std::set core dump on ARM

  arm, c++, containers, stdset

I meet a strange problem when try insert a std::set to another
Code maybe like below

set<A> sa {};
set<A> sb {a ,b, c};

sa.insert(sb.begin(), sb.end());

it’s OK on most of archs
But on one ARM env it core dumped for all usage like this

added
If I replace with below code also can pass excution

for (const auto& s : sb)
    sa.insert(s);

Do someone has any idea about it?

Source: Windows Questions C++

LEAVE A COMMENT