// RUN: %clang_cc1 %s -verify -fsyntax-only
// PR4809
// This test is primarily checking that this doesn't crash, not the particular
// diagnostics.
consttemplatebasic_istream<char>;// expected-error {{expected unqualified-id}}
namespaceS{}template<class X>classY{voidx(){S::templatey<char>(1);}// expected-error {{no member named 'y' in namespace 'S'}}
};