]> granicus.if.org Git - clang/commit
C++ 5.2.10p2 has a note that mentions that, subject to all other restrictions,
authorChad Rosier <mcrosier@apple.com>
Fri, 3 Feb 2012 02:54:37 +0000 (02:54 +0000)
committerChad Rosier <mcrosier@apple.com>
Fri, 3 Feb 2012 02:54:37 +0000 (02:54 +0000)
commit41f4431f3989ff23029eaf2ad947f07e39fb268c
tree412f395a2e6100b60833bb3488be67eda0428351
parent3c0e80e9f2f733b7b56251e9bfd4c1097a81b2f5
C++ 5.2.10p2 has a note that mentions that, subject to all other restrictions,
a cast to the same type is allowed so long as it does not cast away constness.

Fix for PR11747. Patch by Aaron Ballman. Reviewed by Eli.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149664 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCast.cpp
test/SemaCXX/reinterpret-cast.cpp