blob: bcd6da7f32f77a2c0bab66bc184e3a43d4887bb0 [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001// RUN: %clang_cc1 %s -verify -fsyntax-only
2// PR4809
3// This test is primarily checking that this doesn't crash, not the particular
4// diagnostics.
5
6const template basic_istream<char>; // expected-error {{expected unqualified-id}}
7
8namespace S {}
9template <class X> class Y {
10 void x() { S::template y<char>(1); } // expected-error {{does not refer to a template}} \
11 // expected-error {{unqualified-id}}
12};