]> granicus.if.org Git - clang/commit
When instantiating a function-local variable definition, introduce the
authorDouglas Gregor <dgregor@apple.com>
Mon, 3 May 2010 20:22:41 +0000 (20:22 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 3 May 2010 20:22:41 +0000 (20:22 +0000)
commitf7d72f5a4a3f0e610d77c6779ca3c21920a14bc7
treea7c744f33c4d237d7d1886bcf6e0b1c43b859760
parentda5a428bf3db404fe3c91b689cd87c68789d6db9
When instantiating a function-local variable definition, introduce the
mapping from the declaration in the template to the instantiated
declaration before transforming the initializer, in case some crazy
lunatic decides to use a variable in its own initializer. Fixes PR7016.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102945 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-function-1.cpp