Changes:
- handle immediate invocations for constructors.
- add tests
after this patch i believe the implementation of consteval is standard compliant, but IR-gen still needs to be taught not to emit consteval declarations.
Paths
| Differential D74007
[clang] Add support for consteval constructors ClosedPublic Authored by Tyker on Feb 4 2020, 4:08 PM.
Details
Summary Changes:
after this patch i believe the implementation of consteval is standard compliant, but IR-gen still needs to be taught not to emit consteval declarations.
Diff Detail
Event Timeline
Tyker marked 5 inline comments as done. Comment Actionsfixed comments.
Tyker added a child revision: D74130: [clang] fix consteval call in default arguments.Feb 6 2020, 7:50 AM rsmith added inline comments. This revision is now accepted and ready to land.Mar 19 2020, 10:25 AM Closed by commit rG180581cfcf51: [clang] Add support for consteval constructors (authored by Tyker). · Explain WhyMar 20 2020, 3:46 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 251596 clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaInit.cpp
clang/lib/Sema/TreeTransform.h
clang/test/SemaCXX/cxx2a-consteval.cpp
|
* on the right, please.