* g++.dg/expr/cond17.C: New test.
From-SVN: r276907
+2019-10-11 Marek Polacek <polacek@redhat.com>
+
+ PR c++/92070 - bogus error with -fchecking=2.
+ * g++.dg/expr/cond17.C: New test.
+
2019-10-11 Marek Polacek <polacek@redhat.com>
PR c++/92049 - extra error with -fchecking=2.
--- /dev/null
+// 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(); }
+};