]> granicus.if.org Git - clang/commit
When instantiating the definition of a member function of a class
authorDouglas Gregor <dgregor@apple.com>
Mon, 18 May 2009 17:01:57 +0000 (17:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 18 May 2009 17:01:57 +0000 (17:01 +0000)
commitf3e7ce4bd9837cdab6a096235922865f95467d3d
tree3724a95527ff3f62ba286d42b7570b02a8acfd99
parent85a3b03f83f4072e3eda9f0ad40c08a0c28785d3
When instantiating the definition of a member function of a class
template, introduce that member function into the template
instantiation stack. Also, add diagnostics showing the member function
within the instantiation stack and clean up the qualified-name
printing so that we get something like:

  note: in instantiation of member function 'Switch1<int, 2, 2>::f'
  requested here

in the template instantiation backtrace.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72015 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Decl.cpp
lib/Sema/Sema.h
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-function-1.cpp
test/SemaTemplate/temp_explicit.cpp