summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/ptrtomember.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Diagnose attempt to take address of bitfield members in anonymous structs.Richard Smith2017-04-131-0/+4
| | | | | | | | Patch by Jacob Young! Differential Revision: https://reviews.llvm.org/D27263 llvm-svn: 300264
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-131-1/+1
| | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
* Catch placeholder types in DefaultLvalueConversionJohn McCall2011-10-111-8/+8
| | | | | | | | | | | and DefaultFunctionArrayLvalueConversion. To prevent significant regression for should-this-be-a-call fixits, and to repair some such regression from the introduction of bound member placeholders, make those placeholder checks try to build calls appropriately. Harden the build-a-call logic while we're at it. llvm-svn: 141738
* Make yet another placeholder type, this one marking that an expression is a ↵John McCall2011-04-261-3/+2
| | | | | | | | | | | bound member function, i.e. something of the form 'x.f' where 'f' is a non-static member function. Diagnose this in the general case. Some of the new diagnostics are probably worse than the old ones, but we now get this right much more universally, and there's certainly room for improvement in the diagnostics. llvm-svn: 130239
* Unbreak testDouglas Gregor2011-03-231-2/+3
| | | | llvm-svn: 128168
* Add a test for !ptr-to-member (should fail)Marshall Clow2011-03-231-2/+3
| | | | llvm-svn: 128158
* Tweak the wording of this warning further based on a suggestion from Chris.Chandler Carruth2011-01-061-6/+6
| | | | llvm-svn: 122951
* Emit error when using a bound member function for something other than ↵Argyrios Kyrtzidis2010-11-011-0/+14
| | | | | | | | calling it. Also avoids IRGen crashes due to accepting invalid code. llvm-svn: 117943
* Emit an error when trying to form a pointer-to-member to a bitfield.Argyrios Kyrtzidis2010-10-301-0/+5
| | | | | | As a bonus, avoids a crash on the IRGen side due to accepting invalid code. llvm-svn: 117842
* renamed: test/SemaCXX/ptrtomember-badcall.cpp -> test/SemaCXX/ptrtomember.cppArgyrios Kyrtzidis2010-10-301-0/+13
llvm-svn: 117841
OpenPOWER on IntegriCloud