void Foo () { Proxy proxy; Baz (proxy); Baz (proxy.Convert ()); }
int main () { static int const ca[1] = {1}; static int a[1] = {1}; Baz (ca); Baz (a); return 0; }
int Baz (int const *ptr, int *ptr2) { Baz (ptr2); // { dg-error "ambiguous" } Bar (ptr2); // { dg-error "ambiguous" } Foo (ptr2); // { dg-error "ambiguous" } Qux (ptr2); // { dg-error "ambiguous" } return 0; }
int main () { try { Baz (0); /* count(1) */ Baz (0); /* count(1) */ } catch (...) { Boz (); /* count(=====) */ } try { Baz (1); /* count(1) */ Baz (0); /* count(#####) */ } catch (...) { Boz (); /* count(1) */ } return 0; /* count(1) */ }
void __attribute__ ((nothrow)) __cxa_pure_virtual() { Baz().bar().func2(); }
int main() { Baz(); Bar<int>(); return 0; }
int main() { Foo (f); Baz (f); // { dg-error "no matching function" "" } }
const Baz& Proprietor::covariant() { return Baz(); }