shafik added a subscriber: rsmith.
shafik added inline comments.

================
Comment at: clang/test/AST/Interp/records.cpp:509
 
   constexpr A *a2 = &b + 1; // expected-error {{must be initialized by a 
constant expression}} \
                             // expected-note {{cannot access base class of 
pointer past the end of object}} \
----------------
@rsmith it looks like you added this diagnostic a while ago see ce1ec5e1f5620 
did you mean it to apply to this case? The rules have changed a lot since then 
so perhaps this was invalid but now is good.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149149

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to