[PATCH] D138802: [clang][Interp] Implement DecompositionDecls
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 12 23:25:42 PST 2023
tbaeder marked an inline comment as done.
tbaeder added inline comments.
================
Comment at: clang/test/AST/Interp/cxx17.cpp:7
+
+struct F { int a; int b;};
+constexpr F getF() {
----------------
shafik wrote:
> It would also be good to test references, bit-fields, volatile and tuple-like types if possible, if not then leave a FIXME.
Clang doesn't seem to support `volatile` in constant expressions at all right now(?). Can you come up with a reproducer that works? All I get is errors about a non-literal type: https://godbolt.org/z/PbevGf3E8
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138802/new/
https://reviews.llvm.org/D138802
More information about the cfe-commits
mailing list