Eli Friedman | 2624be4 | 2009-08-29 04:08:08 +0000 | [diff] [blame^] | 1 | // 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 | |||||
6 | const template basic_istream<char>; // expected-error {{expected unqualified-id}} | ||||
7 | |||||
8 | namespace S {} | ||||
9 | template <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 | }; |