[PATCH] D74130: [clang] fix consteval call in default arguments
Tyker via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 21 16:13:59 PDT 2021
Tyker updated this revision to Diff 381416.
Tyker added a comment.
In D74130#3073271 <https://reviews.llvm.org/D74130#3073271>, @aaron.ballman wrote:
> @Tyker -- are you planning to pick this review back up again sometime in the near future? If not, do you care if the review gets commandeered?
here is an update that i think is close to committable. if it is not i am fine if it gets commandeered.
Changes
- rebased
- fix the default parameter situation for functions and lambdas.
- fix the top level variables not being properly checked.
the double errors are not fixed on code like:
consteval int f1() { return 0; }
consteval auto g() { return f1; }
constexpr auto e = g();
constexpr auto e1 = f1;
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74130/new/
https://reviews.llvm.org/D74130
Files:
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/ScopeInfo.h
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/SemaCXX/cxx2a-consteval.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74130.381416.patch
Type: text/x-patch
Size: 14504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211021/32e0ada2/attachment-0001.bin>
More information about the cfe-commits
mailing list