blob: a3f081ff60b502622046c457d51359524626708d [file] [log] [blame]
Eli Friedman2624be42009-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}} \
11 // expected-error {{no member named 'y'}}
12};