aaron.ballman added a comment. I agree with your assessment that these should be safe, but the C++ Core Guidelines themselves don't call this case out as part of the enforcement (https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#bounds3-no-array-to-pointer-decay). Have you also filed a pull request (or a bug report) there to see if the maintainers agree with this approach?
http://reviews.llvm.org/D22196 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits