1 2 3 4 5 6 7 8 9 10 11
// PR c++/44524 template<typename, typename> struct map { bool empty(); }; int bar(map<int, float> *X) { return X.empty(); // { dg-error "which is of pointer type 'map" } }