blob: 034ad73b086ada1f555c5398dead0dac8a707735 [file] [log] [blame]
Eli Friedmaneab975d2009-08-29 04:08:08 +00001// RUN: clang-cc %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}} \
Douglas Gregorca1bdd72009-11-04 00:56:37 +000011 // expected-error {{unqualified-id}}
Eli Friedmaneab975d2009-08-29 04:08:08 +000012};