1*67e74705SXin Li // RUN: %clang_cc1 %s -verify -fsyntax-only 2*67e74705SXin Li // PR4809 3*67e74705SXin Li // This test is primarily checking that this doesn't crash, not the particular 4*67e74705SXin Li // diagnostics. 5*67e74705SXin Li 6*67e74705SXin Li const template basic_istream<char>; // expected-error {{expected unqualified-id}} 7*67e74705SXin Li 8*67e74705SXin Li namespace S {} 9*67e74705SXin Li template <class X> class Y { x()10*67e74705SXin Li void x() { S::template y<char>(1); } // expected-error {{does not refer to a template}} \ 11*67e74705SXin Li // expected-error {{unqualified-id}} 12*67e74705SXin Li }; 13