aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond17.C
blob: 1999c376dd15b4a86b41aa117d9144682e6ca4e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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(); }
};