OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / static10.C
1 // PR c++/19555
2
3 namespace __gnu_debug_def { }
4 namespace std
5 {
6   using namespace __gnu_debug_def;
7   template<typename _Tp> class allocator {};
8 }
9 namespace __gnu_debug_def
10 {
11   template<typename _Tp,
12     typename _Allocator = std::allocator<_Tp> >
13     class vector
14     {
15       void
16       swap(vector<_Tp,_Allocator>& __x);
17     };
18 }
19 namespace std
20 {
21   template<> void
22   vector<int, allocator<int> >::swap(vector<int, allocator<int> >&) { } // { dg-error "" }
23   // { dg-message "note" "suggested alternative" { target *-*-* } 22 }
24 }