summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/scope1.C
blob: 73b141bdf0b0e56dc964668590cd215fea133a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }

// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 30 Nov 2001 <nathan@nathan@codesourcery.com>

// PR 3381

namespace N {
  template<class T>
  class A { };
}

template class N::A<unsigned>; // this works (by itself)
template class ::N::A<int>; // but this doesn't