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 {
|
2020-03-28 11:26:34 +08:00
|
|
|
void x() { S::template y<char>(1); } // expected-error {{no member named 'y' in namespace 'S'}}
|
2009-08-29 12:08:08 +08:00
|
|
|
};
|