[PATCH] D76038: PR45000: Use Sema::SetParamDefaultArgument in TransformLambdaExpr
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 19:19:30 PDT 2020
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
More information about the cfe-commits
mailing list