[PATCH] D157619: [clang][Interp] Reject calling virtual constexpr functions in pre-c++20
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 10 07:09:41 PDT 2023
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, shafik, cor3ntin.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Create a new `getOrCreateFunction()` in `Context`, so we can lazily compile functions when invoking them in `CallVirt`. This was necessary in the added test case for example.
Also, reject calling virtual constexpr functions in pre-c++20.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157619
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/Context.cpp
clang/lib/AST/Interp/Context.h
clang/lib/AST/Interp/Interp.h
clang/test/AST/Interp/records.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157619.549030.patch
Type: text/x-patch
Size: 4476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230810/0e574e87/attachment.bin>
More information about the cfe-commits
mailing list