[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / invalid-template-specifier.cpp
blobf8f97ded5da5dfe1e748932b6e25b1010cf88332
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
2 // PR4809
3 // This test is primarily checking that this doesn't crash, not the particular
4 // diagnostics.
6 const template basic_istream<char>; // expected-error {{expected unqualified-id}}
8 namespace S {}
9 template <class X> class Y {
10 void x() { S::template y<char>(1); } // expected-error {{no member named 'y' in namespace 'S'}}