1 /* PR c++/29475 The error diagnostic contained "U = U" instead of "U = char" */
\r
2 /* { dg-do compile } */
\r
8 explicit_t( const T& c ): value( c ) { }
\r
9 operator T&() { return value; }
\r
12 explicit_t( U t ); /* { dg-message "with U = char, T = int|private" } */
\r
16 int foo( int x, explicit_t< int > y )
\r
23 return foo( 5, 'c' ); /* { dg-error "this context" } */
\r