1 // PR c++/35987 2 // { dg-do compile } 3 4 void foo(char * p)5 foo (char *p) 6 { 7 if (++p = true); // { dg-error "cannot convert" } 8 } 9