// PR c++/107593 // { dg-do compile } // { dg-options "-Wduplicated-cond" } template void foo () { if (T() && T() && int()) ; else if (T() && T() && int()) ; } template void bar(T a) { if (a) ; else if (a) ; } template void baz(int a) { if (a) ; else if (a) // { dg-warning "duplicated" } ; } void f () { foo(); bar(1); baz(1); }