[PATCH] D149149: [clang][Interp] Check one-past-the-end pointers in GetPtrField

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 2 20:59:13 PDT 2023


shafik added inline comments.


================
Comment at: clang/test/AST/Interp/records.cpp:500
 
 namespace PointerArith {
   struct A {};
----------------
aaron.ballman wrote:
> Neat! For the tests in this namespace, Clang and ICC agree, GCC and MSVC agree, and users get to cry: https://godbolt.org/z/7EWWrY5z6
Yeah, unfortunate but I am pretty sure clang is correct on both of those.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149149



More information about the cfe-commits mailing list