llvm-project/clang/test/CXX/expr/expr.post
Richard Smith f276e2dc46 Fix determination of whether a reinterpret_cast casts away constness.
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
2018-07-10 23:04:35 +00:00
..
expr.call
expr.const.cast
expr.dynamic.cast
expr.ref
expr.reinterpret.cast Fix determination of whether a reinterpret_cast casts away constness. 2018-07-10 23:04:35 +00:00
expr.static.cast
expr.type.conv [c++1z] Synthesize implicit deduction guides from constructors on demand. Rank 2017-02-14 00:25:28 +00:00