================ @@ -416,3 +416,38 @@ static_assert( // expected-note@-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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits