2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / explicit-inst1.C
bloba6455d8310b0e4283bffea449504a632119ed7ba
1 // In C++11 explicit instantiation without a nested-name-specifier must be in
2 // the same namespace.
4 namespace N {
5   template <class T> class foo {};
6   template <class T> class bar {};
9 using N::bar;
10 template class bar<int>;        // { dg-error "" "" { target c++11 } }
12 using namespace N;
13 template class foo<int>;        // { dg-error "" "" { target c++11 } }