// PR c++/107593 // { dg-do compile } // { dg-options "-Wduplicated-cond" } int n; template bool g() { n = 42; return false; } template void f() { if (n) ; else if (g()) ; else if (n) ; }