tbaeder added a comment. Output for that test case is:
./array.cpp:1:16: error: constexpr function never produces a constant expression [-Winvalid-constexpr] constexpr void f() { ^ ./array.cpp:3:23: note: value 1292785156096 is outside the range of representable values of type 'int' arr[1024*1024*1024*1204]; ^ ./array.cpp:3:28: warning: expression result unused [-Wunused-value] arr[1024*1024*1024*1204]; ~~~ ~~~~~~~~~~~~~~~~~~~^ 1 warning and 1 error generated. The first overflow warning is missing. That seems to be new though, I don't get that warning with clang 14 either. 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