Link: https://github.com/llvm-mirror/libcxx/blob/52ba46bf85151fa3cbd444e8d7948a40f28f25ac/include/algorithm#L4385 merge should be probably called with _VSTD:: to avoid ADL issues
Fixed in revision 369463. Thanks for the bug report!