Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix determination of whether a reinterpret_cast casts away constness. | Richard Smith | 2018-07-10 | 1 | -0/+26 |
| | | | | | | | | | | | | | | The "casts away constness" check doesn't care at all how the different layers of the source and destination type were formed: for example, if the source is a pointer and the destination is a pointer-to-member, the types are still decomposed and their pointee qualifications are still checked. This rule is bizarre and somewhat ridiculous, so as an extension we accept code making use of such reinterpret_casts with a warning outside of SFINAE contexts. llvm-svn: 336738 | ||||
* | PR9546, DR1268: A prvalue cannot be reinterpret_cast to an rvalue reference | Richard Smith | 2012-04-29 | 1 | -2/+5 |
| | | | | | | type. But a glvalue can be reinterpret_cast to either flavor of reference. llvm-svn: 155789 | ||||
* | Update all tests other than Driver/std.cpp to use -std=c++11 rather than | Richard Smith | 2011-10-13 | 1 | -1/+1 |
| | | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900 | ||||
* | Update const_cast semantics for rvalue references. Add tests for | Douglas Gregor | 2011-01-22 | 1 | -0/+16 |
reinterpret_cast and const_cast using rvalue references. llvm-svn: 124007 |