[clang] [clang] Fixed Constant Evaluation don't Call Destructor (PR #140278)

via cfe-commits cfe-commits at lists.llvm.org
Mon May 19 16:18:27 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:

Er, there’s no reason for these tests to be in this file; maybe try and find a file containing tests around destructors during constant evaluation (in either `test/AST` or `test/SemaCXX`); if you can’t find one, then just make a new file and call it `gh139818.cpp`.


https://github.com/llvm/llvm-project/pull/140278


More information about the cfe-commits mailing list