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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 10 08:53:08 PDT 2016


aaron.ballman added a reviewer: rsmith.
aaron.ballman added a subscriber: rsmith.
aaron.ballman added a comment.

Hmm, perhaps @rsmith has other opinions, but I think this should be fixed in `isIntegerConstantExpr()`. C++03 has the notion of value dependence, and [temp.dep.type]p1 and [expr.const]p1 both specify that a non-type template parameters of integral types are constant expressions.


http://reviews.llvm.org/D22190





More information about the cfe-commits mailing list