1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 template <class T> struct AA {
4   template <class C> virtual void g(C); // expected-error{{'virtual' cannot be specified on member function templates}}
5   virtual void f();
6 };
7