summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/member-access-expr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use CXXPseudoDestructorExpr as the stored representation for dependentDouglas Gregor2010-02-251-0/+2
| | | | | | | | | | | | | | | | expressions that look like pseudo-destructors, e.g., p->T::~T() where p has dependent type. At template instantiate time, we determine whether we actually have a pseudo-destructor or a member access, and funnel down to the appropriate routine in Sema. Fixes PR6380. llvm-svn: 97092
* Unresolved implicit member accesses are dependent if the object type is ↵John McCall2009-12-191-0/+14
| | | | | | | | | | dependent. Avoids an assertion arising during object-argument initialization in overload resolution. In theory we can resolve this at definition time if the class hierarchy for the member is fully known. llvm-svn: 91747
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - 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
* Make sure to grab CVR qualifiers from the canonical type. ARGH!Douglas Gregor2009-11-051-0/+17
| | | | llvm-svn: 86079
* When a template-id expression refers to a member function template, turn it ↵Douglas Gregor2009-10-221-1/+14
| | | | | | into an (implicit) member access expression. Fixes PR5220 llvm-svn: 84848
* Implement AST, semantics, and CodeGen for C++ pseudo-destructorDouglas Gregor2009-09-041-0/+16
| | | | | | | | | | | | | expressions, e.g., p->~T() when p is a pointer to a scalar type. We don't currently diagnose errors when pseudo-destructor expressions are used in any way other than by forming a call. llvm-svn: 81009
* Implement tree transformations for DeclarationNames. Among otherDouglas Gregor2009-09-031-0/+13
| | | | | | | | | | | things, this means that we can properly cope with member access expressions such as t->operator T() where T is a template parameter (or other dependent type). llvm-svn: 80957
* Improve template instantiation for member access expressions thatDouglas Gregor2009-09-031-4/+4
| | | | | | | | | involve qualified names, e.g., x->Base::f. We now maintain enough information in the AST to compare the results of the name lookup of "Base" in the scope of the postfix-expression (determined at template definition time) and in the type of the object expression. llvm-svn: 80953
* Add a wicked little test-case that illustrates what we have to dealDouglas Gregor2009-09-021-0/+48
with to properly support member access expressions in templates. This test is XFAIL'd, because we get it completely wrong, but I've made the minimal changes to the representation to at least avoid a crash. llvm-svn: 80856
OpenPOWER on IntegriCloud