(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
expr/
cond17.C
// PR c++/92070 - bogus error with -fchecking=2.
// { dg-additional-options "-fchecking=2" }

struct a;
struct b {
  static a c();
};
struct a : b {};
template <class> struct d {
  void e() { 0 ? b() : b::c(); }
};