// RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify %s template void quux(); void fun() { struct foo { template struct bar {}; // expected-error{{templates cannot be declared inside of a local class}} template void baz() {} // expected-error{{templates cannot be declared inside of a local class}} template void qux(); // expected-error{{templates cannot be declared inside of a local class}} template using corge = int; // expected-error{{templates cannot be declared inside of a local class}} template static T grault; // expected-error{{static data member}} expected-error{{templates cannot be declared inside of a local class}} }; }