]> granicus.if.org Git - clang/commit
Sema: Reject templates in all extern "C" contexts.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 2 Feb 2014 16:35:43 +0000 (16:35 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 2 Feb 2014 16:35:43 +0000 (16:35 +0000)
commitb72839f22820b010628a9a4003bfb14a05b0102c
treefe1d43b5588f2815082306040ea8ac112c96e97c
parent096b70c87d7f7c461aedd662a24dd83760a6273f
Sema: Reject templates in all extern "C" contexts.

Otherwise we'd accept them if the LinkageDecl was not the direct
parent DeclContext. PR17968.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200641 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
test/SemaCXX/warn-unused-value.cpp
test/SemaTemplate/class-template-decl.cpp