summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/address-of.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR15132: Replace "address expression must be an lvalue or a functionRichard Smith2013-02-021-3/+3
| | | | | | | | | | | | | | designator" diagnostic with more correct and more human-friendly "cannot take address of rvalue of type 'T'". For the case of & &T::f, provide a custom diagnostic, rather than unhelpfully saying "cannot take address of rvalue of type '<overloaded function type>'". For the case of &array_temporary, treat it just like a class temporary (including allowing it as an extension); the existing diagnostic wording for the class temporary case works fine. llvm-svn: 174262
* This patch makes "&Cls::purevfn" not an odr use. This isn't what the standardNick Lewycky2013-02-021-0/+8
| | | | | | | | | says, but that's a defect (to be filed). "Cls::purevfn()" is still an odr use. Also fixes a bug that caused us to not mark the function referenced just because we didn't want to mark it odr used. llvm-svn: 174242
* Only allow taking the address of an expression of type 'overloadedDouglas Gregor2011-10-091-0/+11
| | | | | | | | function type' when that expression is actually an overloaded function reference (and not the address of an overloaded function reference). Fixes PR11066. llvm-svn: 141514
* 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
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* fix PR 3222: allow one to get the address of a global function in C++Nuno Lopes2008-12-161-1/+5
| | | | llvm-svn: 61111
* Fix PR clang/3175: CheckAddressOfOperand does not handle references to class ↵Douglas Gregor2008-12-101-0/+31
vars llvm-svn: 60849
OpenPOWER on IntegriCloud