blob: 4b97d0990cc9507187967f83d07e5ab5ca6897dd [file] [log] [blame]
// { dg-do compile }
// { dg-options "-Wparentheses" }
template <class x>
class z : x
{
public:
bool zz () { return false; }
int f () { return zz () ? : 1; } // { dg-warning "omitted middle operand" }
};
class t
{
};
int
main ()
{
z<t> x;
return x.f ();
}