commit | 67da6f6f0c20dbfebb1c383a3efaf85d925ad33e | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Sat Mar 05 01:35:54 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Sat Mar 05 01:35:54 2011 +0000 |
tree | 311c0f10a746fc0b89ba7cb7b63d54ad0d37b32a | |
parent | b1c86492f9a9bef01a4567408c22f961bbd604fe [diff] |
When we're deserializing a template parameter declaration, temporarily use the translation unit as its declaration context, then deserialize the actual lexical and semantic DeclContexts after the template parameter is complete. This avoids problems when the DeclContext itself (e.g., a class template) is dependent on the template parameter (e.g., for the injected-class-name). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127056 91177308-0d34-0410-b5e6-96231b3b80d8