gcc/testsuite/g++.dg/other/scope1.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 30 Nov 2001 <nathan@[email protected]> |
| 5 | |
| 6 | // PR 3381 |
| 7 | |
| 8 | namespace N { |
| 9 | template<class T> |
| 10 | class A { }; |
| 11 | } |
| 12 | |
| 13 | template class N::A<unsigned>; // this works (by itself) |
| 14 | template class ::N::A<int>; // but this doesn't |