]> granicus.if.org Git - clang/commit
Sema: Instantiation of variable definitions weren't local enough
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 27 Nov 2013 22:57:44 +0000 (22:57 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 27 Nov 2013 22:57:44 +0000 (22:57 +0000)
commit9cb97043d5930dd388174ed5c9be3b7674a5c195
treee9811642eb226fdb13b49669dbe4196762ae82cd
parent94ada1be3db0c968c4948074ee38144d98389e71
Sema: Instantiation of variable definitions weren't local enough

We wouldn't properly save and restore the pending local instantiations
we had built up prior to instantiation of a variable definition.  This
would lead to us instantiating too much causing crashes and other
general badness.

This fixes PR14374.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195887 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-local-class.cpp