]> granicus.if.org Git - clang/commit
When checking for a prior declaration of the name of a namespace, skip
authorDouglas Gregor <dgregor@apple.com>
Fri, 6 May 2011 23:28:47 +0000 (23:28 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 6 May 2011 23:28:47 +0000 (23:28 +0000)
commit010157f9dbce11706c96229cf17f1da9e2a39d73
tree658f657cf620eb9e59d8aacffde0ae621f8e81b9
parent31e7f225fa3c603b84d66bc8ebdf7ed084e36e62
When checking for a prior declaration of the name of a namespace, skip
any names that aren't in the appropriate identifier namespaces. Fixes
an embarrassing bug where we give a redefinition error due to an
Objective-C category (<rdar://problem/9388207>).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131036 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaObjCXX/namespace-lookup.mm [new file with mode: 0644]