(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
expr/
cond2.C
struct Term { };
struct Boolean : Term {
  explicit Boolean(bool);
};
struct IsZero : Term {
  Term *eval();
};
Term*
IsZero::eval()
{
  return true ? new Boolean(false) : this; // { dg-error "15:conditional expression" }
}