[PATCH] D32675: in expression evaluator, treat non-literal types as discarded value expressions if EvalInfo says to continue evaluating them

Richard Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 30 18:52:50 PDT 2017


rsmith accepted this revision.
rsmith added a comment.
This revision is now accepted and ready to land.

Thanks. Could you also add something like:

  struct A {};
  struct B : virtual A {};
  constexpr A &a = (A&)*(B*)0;

to test/SemaCXX/constant-expression-cxx11.cpp to ensure we produce a suitable diagnostic, please?


https://reviews.llvm.org/D32675





More information about the cfe-commits mailing list