1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 namespace n { 4 template <int> 5 void f(); // expected-note{{explicit instantiation candidate function 'n::f<0>' template here [with $0 = 0]}} 6 7 extern template void f<0>(); 8 } 9 10 using namespace n; 11 12 template <int> 13 void f() {} // expected-note{{explicit instantiation candidate function 'f<0>' template here [with $0 = 0]}} 14 15 template void f<0>(); // expected-error{{partial ordering for explicit instantiation of 'f' is ambiguous}} 16 17