// PR c++/44524 template struct map { bool empty(); }; int bar(map *X) { return X.empty(); // { dg-error "which is of pointer type 'map" } }