// PR c++/19555 namespace __gnu_debug_def { } namespace std { using namespace __gnu_debug_def; template class allocator {}; // { dg-message "std::allocator" } } namespace __gnu_debug_def { template > class vector { void swap(vector<_Tp,_Allocator>& __x); }; } namespace std { template<> void vector >::swap(vector >&) { } // { dg-error "" } // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } 22 } }