aaronpuchert added a comment. I tested a bit more and there is a problem: some errors now appear twice, and I think they shouldn't.
template <typename T> void f(int x = [](T x = nullptr) -> int { return x; }()); void g() { f<int>(); } The error is expected, but it should only appear once: <stdin>:2:23: error: cannot initialize a parameter of type 'int' with an rvalue of type 'nullptr_t' void f(int x = [](T x = nullptr) -> int { return x; }()); ^ ~~~~~~~ Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D76038/new/ https://reviews.llvm.org/D76038 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits