summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/member-pointers-2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Allow function calls to dereferenced member pointers ofDouglas Gregor2011-03-161-0/+15
| | | | | | pointer-to-function type. Fixes <rdar://problem/9065289>. llvm-svn: 127739
* 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
* If a C++ qualified id is followed by a postfix suffix, it is never the directJohn McCall2009-11-221-0/+36
operand of an addressof operator, and so we should not treat it as an abstract member-pointer expression and therefore suppress the implicit member access. This is really a well-formedness constraint on expressions: a DeclRefExpr of a FieldDecl or a non-static CXXMethodDecl (or template thereof, or unresolved collection thereof) should not be allowed in an arbitrary location in the AST. Arguably it shouldn't be allowed anywhere and we should have a different expr node type for this. But unfortunately we don't have a good way of enforcing this kind of constraint right now. llvm-svn: 89578
OpenPOWER on IntegriCloud