John McCall
07e91c04ba
First pass at friend semantics.
...
llvm-svn: 78274
2009-08-06 02:15:43 +00:00
John McCall
02dee0a46a
Semantic checking for main().
...
Fix some invalid main() methods in the test suite that were nicely
exposed by the new checks.
llvm-svn: 77047
2009-07-25 04:36:53 +00:00
Douglas Gregor
be759256b9
Fix a corner case with argument-dependent lookup and overloaded function sets.
...
llvm-svn: 74999
2009-07-08 10:57:20 +00:00
Douglas Gregor
197e5f7bb7
Improve argument-dependent lookup to find associated classes and
...
namespaces based on the template arguments of a class template
specialization type.
llvm-svn: 74993
2009-07-08 07:51:57 +00:00
Douglas Gregor
dda7ced32e
When recursively instantiating function templates, keep track of the
...
instantiation stack so that we provide a full instantiation
backtrace. Previously, we performed all of the instantiations implied
by the recursion, but each looked like a "top-level" instantiation.
The included test case tests the previous fix for the instantiation of
DeclRefExprs. Note that the "instantiated from" diagnostics still
don't tell us which template arguments we're instantiating with.
llvm-svn: 74540
2009-06-30 17:20:14 +00:00
Douglas Gregor
7ee2be46a6
New test for when the subexpressions within a typeid are potentially evaluated. We seem to be the only ones to get this right.
...
llvm-svn: 73955
2009-06-23 15:32:13 +00:00
Argyrios Kyrtzidis
3df1978270
Implement correct name lookup inside an initializer of a C++ class static data member.
...
Fixes "test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp" test case.
llvm-svn: 73652
2009-06-17 22:50:06 +00:00
Daniel Dunbar
e16b80cb83
More [basic.lookup.unqual] tests.
...
- p13 and p14 are important failures.
llvm-svn: 73392
2009-06-15 17:18:42 +00:00
Daniel Dunbar
9e2bd8a572
Test for [basic.lookup.unqual]p3
...
- Failing, at least in part, because lookup in parser is finding a friend
function where it shouldn't.
llvm-svn: 73388
2009-06-15 15:56:08 +00:00