1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -verify %s 2*67e74705SXin Li 3*67e74705SXin Li namespace PR6948 { 4*67e74705SXin Li template<typename T> class X; // expected-note{{template is declared here}} 5*67e74705SXin Li f()6*67e74705SXin Li void f() { 7*67e74705SXin Li X<char> str (read_from_file()); // expected-error{{use of undeclared identifier 'read_from_file'}} \ 8*67e74705SXin Li expected-error{{implicit instantiation of undefined template 'PR6948::X<char>'}} 9*67e74705SXin Li } 10*67e74705SXin Li } 11