// PR c++/104622 // { dg-additional-options "-fpermissive" } template struct type_identity { typedef T type; }; template void f(typename type_identity::type*, T, int*); int main() { const int p = 0; f(&p, 0, 0); // { dg-warning "invalid conversion" } }