PR46231: Promote diagnostic for 'template<...>;' from ExtWarn to Error.
authorRichard Smith <richard@metafoo.co.uk>
Wed, 29 Jul 2020 19:29:05 +0000 (12:29 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Wed, 29 Jul 2020 19:35:18 +0000 (12:35 -0700)
commit1cbdf932b41eb58ed94fbc240e93b63653d95bd3
tree13945dbcf25b5edb4181c5caa51c734f32d60a2f
parentdecfdb8ce3d511739b976d47862a98fe5674e2aa
PR46231: Promote diagnostic for 'template<...>;' from ExtWarn to Error.

No other compiler accepts this as an extension, not even in permissive
mode. We're not doing anyone any favors by allowing this, and it's
unlikely to be at all common, even in Clang-only code, in the wild.
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/Parser/cxx-template-decl.cpp
clang/test/SemaCXX/PR16677.cpp
clang/test/SemaCXX/invalid-template-params.cpp
clang/test/SemaTemplate/template-decl-fail.cpp