[clang] [clang] Fixed Constant Evaluation don't Call Destructor (PR #140278)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 20 20:07:24 PDT 2025
================
@@ -416,3 +416,38 @@ static_assert(
// expected-note at -1 {{read of dereferenced one-past-the-end pointer is not allowed in a constant expression}}
);
}
+
+// taken from: https://github.com/llvm/llvm-project/issues/139818
+namespace GH139818{
----------------
Sirraide wrote:
No, that’s for the `consteval` keyword. Maybe just make a new file for this then.
And in that case, can you also check if this works with the new constant interpreter by adding a second `RUN` line with `-fexperimental-new-constant-interpreter`. If that also passes then that’s great, if not, then just remove it again (you don’t have to update the new interpreter as well as part of this pr), but it’d be nice to check whether this is also a bug in the new interpreter if we’re already adding tests for this.
https://github.com/llvm/llvm-project/pull/140278
More information about the cfe-commits
mailing list