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

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Tue May 20 20:57:00 PDT 2025


================
@@ -1321,4 +1321,39 @@ namespace GH139160{
                                                 // expected-note at -2  {{non-constexpr function 'make_struct' cannot be used in a constant expression}}
 };
 
+// taken from: https://github.com/llvm/llvm-project/issues/139818
+namespace GH139818{
----------------
zyn0217 wrote:

GH139818 already reflects the source.

```suggestion
namespace GH139818 {
```

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


More information about the cfe-commits mailing list