PR16519, PR18009: When checking a partial specialization for uses of its own
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 9 Feb 2014 00:54:43 +0000 (00:54 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 9 Feb 2014 00:54:43 +0000 (00:54 +0000)
commit6056d5e918860c605476a1eab5500a99eb6f941a
tree24be09a6c2caf041aa728bf18b21a06c03a1112b
parenta7053cb9cc1e7e746b5591ae80a9e8e29b7f952c
PR16519, PR18009: When checking a partial specialization for uses of its own
template parameters, don't look for parameters of outer templates. If a problem
is found in a default template argument, point the diagnostic at the partial
specialization (with a note pointing at the default argument) instead of
pointing it at the default argument and leaving it unclear which partial
specialization os problematic.

llvm-svn: 201031
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaTemplate/class-template-spec.cpp