Douglas Gregor
412c362d9e
When performing name lookup for a namespace definition, only look into
...
the current context's redeclaration context, ignoring using
directives. Fixes PR8430.
llvm-svn: 117097
2010-10-22 15:24:46 +00:00
John McCall
f477659040
template-ids are looked up differently in friend declarations.
...
llvm-svn: 116529
2010-10-14 22:22:28 +00:00
Sebastian Redl
bd59576541
Make inline namespace not be transparent after all. The concept simply doesn't fit. Instead, special-case the few places where transparent contexts have the desired behavior for inline namespaces. Fixes a redeclaration issue in inline namespaces.
...
llvm-svn: 112637
2010-08-31 20:53:31 +00:00
Sebastian Redl
5a5f2c76b6
Enable inline namespaces in C++03 as an extension.
...
llvm-svn: 112566
2010-08-31 00:36:45 +00:00
Sebastian Redl
35034569c7
Add a forgotten place where the enclosing namespace set matters, plus a big testcase for inline namespace fun.
...
llvm-svn: 112565
2010-08-31 00:36:40 +00:00
Sebastian Redl
b5c2baa2d7
Enable inline namespaces in the AST.
...
llvm-svn: 112564
2010-08-31 00:36:36 +00:00
Sebastian Redl
6766794c0b
Parser support for inline namespaces
...
llvm-svn: 112320
2010-08-27 23:12:46 +00:00
Douglas Gregor
b74b1038bb
C++ [namespace.memdef]p3 only applies when the friend is not named via
...
a qualified name. We weren't checking for an empty
nested-name-specifier when dealing with friend class templates
(although we were checking in the other places where we deal with this
paragraph). Fixes a Boost.Serialization showstopper.
llvm-svn: 101724
2010-04-18 17:37:40 +00:00
Chandler Carruth
b306bcc266
Fix a really trivial crasher and begin fleshing out one of the namespace test
...
cases.
llvm-svn: 97134
2010-02-25 09:32:59 +00:00
John McCall
0db42252f7
Successive anonymous namespaces name the same scope. I misinterpreted the
...
standard the last time. Fixes PR5766.
llvm-svn: 91493
2009-12-16 02:06:49 +00:00
Daniel Dunbar
8fbe78f6fc
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
...
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).
llvm-svn: 91446
2009-12-15 20:14:24 +00:00
John McCall
f6c8a4ef1f
Fix unqualified lookup through using directives.
...
This is a pretty minimal test case; I'll make a better one later.
llvm-svn: 86669
2009-11-10 07:01:13 +00:00
Douglas Gregor
9acb690827
Fix name lookup for friend class templates to consider anything in a
...
scope *up to and including* the innermost namespace scope, rather than
just searching in the innermost namespace scope.
llvm-svn: 82849
2009-09-26 07:05:09 +00:00