[PATCH] D22190: cppcoreguidelines-pro-bounds-constant-array-index: crash for value dependent index in c++03 mode

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 14 15:43:00 PDT 2016


rsmith added a comment.

It's not meaningful to ask whether a value-dependent expression is an integral constant expression. The answer is not knowable, so the function asserting doesn't seem unreasonable. Any value we returned from that function would be a lie.


Repository:
  rL LLVM

https://reviews.llvm.org/D22190





More information about the cfe-commits mailing list