// RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify %s
template<typename>voidquux();voidfun(){structfoo{template<typename>structbar{};// expected-error{{templates cannot be declared inside of a local class}}
template<typename>voidbaz(){}// expected-error{{templates cannot be declared inside of a local class}}
template<typename>voidqux();// expected-error{{templates cannot be declared inside of a local class}}
template<typename>using corge =int;// expected-error{{templates cannot be declared inside of a local class}}
template<typename T>staticT grault;// expected-error{{static data member}} expected-error{{templates cannot be declared inside of a local class}}
};}