2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -verify -fsyntax-only
|
2009-08-29 12:08:08 +08:00
|
|
|
// PR4809
|
|
|
|
// This test is primarily checking that this doesn't crash, not the particular
|
|
|
|
// diagnostics.
|
|
|
|
|
|
|
|
const template basic_istream<char>; // expected-error {{expected unqualified-id}}
|
|
|
|
|
|
|
|
namespace S {}
|
|
|
|
template <class X> class Y {
|
|
|
|
void x() { S::template y<char>(1); } // expected-error {{does not refer to a template}} \
|
2009-11-04 08:56:37 +08:00
|
|
|
// expected-error {{unqualified-id}}
|
2009-08-29 12:08:08 +08:00
|
|
|
};
|