commit | fb35e8f497d180e562e2e1bd8cd4b756b2d4a846 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Nov 03 16:37:14 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Nov 03 16:37:14 2011 +0000 |
tree | 5e89f0d2e52c82efcd1db8a98cf74f0325a2ce7c | |
parent | b4efaa0a14dd2382aa028c03283b5a7f5345e24d [diff] |
When we're checking a friend function template in an out-of-line class definition, we may not have a scope corresponding to the namespace where that friend function template actually lives. Work around this issue by faking up a scope with the appropriate DeclContext. This is a bit of a hack, but it fixes <rdar://problem/10204947>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143614 91177308-0d34-0410-b5e6-96231b3b80d8