[flang] Remove use of std::set::merge
authorTim Keith <tkeith@nvidia.com>
Sat, 22 Feb 2020 19:47:04 +0000 (11:47 -0800)
committerTim Keith <tkeith@nvidia.com>
Thu, 27 Feb 2020 00:10:11 +0000 (16:10 -0800)
commitc875618506cf4c6da09ba23542dc5ffaedca7ad3
tree0c8af3775b48938479e1bf43983a45a962a620bf
parent42cc44fbc8dc6c66d3e10a2d904133ffcdde3762
[flang] Remove use of std::set::merge

Some versions of clang that we are building with don't have
std::set::merge, even though it is part of C++17. Work around
that by using std::set::insert until we can count on merge being
available everywhere.

Original-commit: flang-compiler/f18@886ccc37fbff5df00717ac728e2aba240d0a314c
Reviewed-on: https://github.com/flang-compiler/f18/pull/1014
flang/lib/Semantics/check-do-forall.cpp