[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / static10.C
blob5740ac44eeab183a78603fa31525ceab91f6b6d5
1 // PR c++/19555
3 namespace __gnu_debug_def { }
4 namespace std
6   using namespace __gnu_debug_def;
7   template<typename _Tp> class allocator {}; // { dg-message "std::allocator" }
9 namespace __gnu_debug_def
11   template<typename _Tp,
12     typename _Allocator = std::allocator<_Tp> >
13     class vector
14     {
15       void
16       swap(vector<_Tp,_Allocator>& __x);
17     };
19 namespace std
21   template<> void
22   vector<int, allocator<int> >::swap(vector<int, allocator<int> >&) { } // { dg-error "" }
23   // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } .-1 }