kevgs added a comment.
My test case is:
clang++ -std=c++14 -fsyntax-only test.cc
#include <algorithm>
#include <iostream>
#include <vector>
int main() {
std::vector<int> v = {1, 2, 3};
std::for_each(v.begin(), v.end(), [](auto i) { std::cout << i; });
return 0;
}
https://reviews.llvm.org/D23329