================ @@ -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:
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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits