This is illegal in a constexpr context. We can already figure that out,
but we'd still run into an assertion later on when trying to visit the
missing initializer or run the invalid function.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D132832
[clang][Interp] Handle missing local initializers better ClosedPublic Authored by tbaeder on Aug 29 2022, 1:26 AM.
Details Summary This is illegal in a constexpr context. We can already figure that out,
Diff Detail Event Timeline
tbaeder marked 2 inline comments as done. This revision is now accepted and ready to land.Aug 29 2022, 6:50 AM This revision was landed with ongoing or failed builds.Sep 7 2022, 10:32 PM Closed by commit rGaa7c5c9c4e5e: [clang][Interp] Handle missing local initializers better (authored by tbaeder). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 456328 clang/lib/AST/Interp/ByteCodeEmitter.cpp
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/lib/AST/Interp/Function.h
clang/test/AST/Interp/cxx20.cpp
|
Would be nice to test this before the work to allocate Offset?