hanchenye-llvm-project/clang/test/CXX/temp
Richard Smith 7b8c3c91f4 PR10359: Template declarations which define classes are not permitted to also contain declarators. Previously we would accept code like this:
template<typename T> struct S { } f() { return 0; }

This case now produces a missing ';' diagnostic, since that seems like a much more likely error than an attempt to declare a function or variable in addition to the class template.

Treat this 

llvm-svn: 135195
2011-07-14 21:35:26 +00:00
..
temp.arg Implement C++0x [temp.arg.template]p3, which allows slightly fuzzy 2011-01-13 00:08:50 +00:00
temp.decls Diagnose unexpanded parameter packs in return statements. This 2011-05-20 15:32:55 +00:00
temp.fct.spec Accept no-return stripping conversions for pointer type arguments after 2011-06-18 01:19:03 +00:00
temp.names Reinstate r104117, Chandler Carruth's change that "[provides] a naming 2010-05-20 20:58:56 +00:00
temp.param When checking the instantiation of a default template argument against 2011-06-03 02:59:40 +00:00
temp.res PR10359: Template declarations which define classes are not permitted to also contain declarators. Previously we would accept code like this: 2011-07-14 21:35:26 +00:00
temp.spec Factor out (some of) the checking for invalid forms of pointer 2011-06-27 08:02:19 +00:00
temp.type Implement support for C++0x alias templates. 2011-05-05 21:57:07 +00:00
p3.cpp PR10359: Template declarations which define classes are not permitted to also contain declarators. Previously we would accept code like this: 2011-07-14 21:35:26 +00:00