================
@@ -598,3 +600,27 @@ namespace B {
 }
 void g(B::X x) { A::f(x); }
 }
+
+namespace static_operator {
+#if __cplusplus >= 201703L
----------------
frederick-vs-ja wrote:

> No way to modify things in a C++11/14 constexpr function (`++x` is not a 
> constant expression), so no way to make a positive test that the expression 
> was evaluated. Though I guess I should have done `(non_constexpr_fn(), 
> X())()` and see if that failed.

Oh I see. It's inconvenient that runtime results can't be easily asserted in 
this test file.

I think the related changes of constexpr were made in C++14 
([N3652](https://wg21.link/n3652)).

https://github.com/llvm/llvm-project/pull/78356
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to