blob: f59f6fda77c1076960ce2bbde88a2bada03b21c5 [file] [log] [blame]
// PR c++/104622
// { dg-additional-options "-fpermissive" }
template<class T>
struct type_identity {
typedef T type;
};
template<class T> void f(typename type_identity<T>::type*, T, int*);
int main() {
const int p = 0;
f(&p, 0, 0); // { dg-warning "invalid conversion" }
}