summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/basic/basic.link/p6.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix implementation of C11 6.2.7/4 and C++11 [dcl.array]p3:Richard Smith2013-08-131-26/+27
| | | | | | | | | | | | | When a local extern declaration redeclares some other entity, the type of that entity is merged with the prior type if the prior declaration is visible (in C) or is declared in the same scope (in C++). - Make LookupRedeclarationWithLinkage actually work in C++, use it in the right set of cases, and make it track whether it found a shadowed declaration. - Track whether we found a declaration in the same scope (for C++) including across serialization and template instantiation. llvm-svn: 188307
* Only merge down a variable type if the previous declaration wasJohn McCall2013-04-011-0/+43
visible. There's a lot of potential badness in how we're modelling these things, but getting this much correct is reasonably easy. rdar://13535367 llvm-svn: 178488
OpenPOWER on IntegriCloud