[PATCH] D119493: Fixing surplus assert condition in EvaluateTemporary

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 12:19:28 PDT 2022


efriedma added a comment.

I'm not sure this is the right fix. If we were handling the pseudo-destructor correctly, I would expect the following to compile successfully:

  typedef bool Var;
  constexpr bool foobool() {
  	return (bool().Var::~Var(), false); 
  }


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

https://reviews.llvm.org/D119493



More information about the cfe-commits mailing list