]> granicus.if.org Git - clang/commit
Reimplement the comparison of a class template partial
authorDouglas Gregor <dgregor@apple.com>
Thu, 23 Dec 2010 17:13:55 +0000 (17:13 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 23 Dec 2010 17:13:55 +0000 (17:13 +0000)
commitb9c6631941619fb8c74f1056fbc56270629201c1
treefac3bda70506ee7b5d567862b93fe1eca29814a1
parentb7d09d627c8576b9bc85f44f05befdd44fedc7ed
Reimplement the comparison of a class template partial
specialization's template arguments against the primary template's
template arguments using the obvious, correct method of checking the
injected-class-name type (C++ [temp.class.spec]p9b3). The previous
incarnation of this comparison attempted to use its own formulation of
the injected-class-name, which is redudant and, with the introduction
of variadic templates, became wrong (again).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122508 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaTemplate.cpp
test/CXX/temp/temp.decls/temp.class.spec/p9-0x.cpp [new file with mode: 0644]