]> granicus.if.org Git - clang/commit
In Microsoft mode, allow template function explicit specialization at class scope.
authorFrancois Pichet <pichet2000@gmail.com>
Sat, 14 May 2011 17:46:46 +0000 (17:46 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Sat, 14 May 2011 17:46:46 +0000 (17:46 +0000)
commit1fa8028d9ff5de64f8b9d55731ca83a2d3423a77
tree266798745da1de6aa4ce53152d27d1a443c34c26
parent1804174e1591bf59118f317775b48edd0382c3f0
In Microsoft mode, allow template function explicit specialization at class scope.
Necessary to parse MFC and MSVC standard lib code.

Example:
struct X {
  template<class T> void f(T) { }
  template<> void f(int) { }
}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131347 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaTemplate.cpp
test/SemaCXX/MicrosoftExtensions.cpp