1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { dg-do assemble } struct A { A (int); }; struct B { operator int () { return 1; } }; void f (const A&); void g() { B b; f ((A) b); f (A (b)); // { dg-bogus "" } functional cast treated differently from C style }