shafik added a comment.

We may not have good code coverage, what about a case like this:

  constexpr void f() {
      int arr[10]{};
      arr[1024*1024*1024*1204];
  }

do you still obtain:

   error: constexpr function never produces a constant expression 
[-Winvalid-constexpr]
  constexpr void f() {
                 ^

godbolt: https://godbolt.org/z/5T5Gn5rxq


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138270/new/

https://reviews.llvm.org/D138270

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to