1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// { dg-do compile } // { dg-options "-Wduplicated-cond" } template <typename> class a { typedef a b; template <typename> void c(); }; template <typename d> template <typename> void a<d>::c() { int f; b g; if (g == 0) ; else if (f) { } }