1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// PR c++/32019 struct C { C(const char *); operator const char *(); }; extern C c; extern const char * s; void foo (bool b) { b ? c : s; // { dg-error "?:" } // { dg-message "convert" "" { target *-*-* } .-1 } }