]> granicus.if.org Git - clang/commit
PR9546, DR1268: A prvalue cannot be reinterpret_cast to an rvalue reference
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 29 Apr 2012 08:24:44 +0000 (08:24 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 29 Apr 2012 08:24:44 +0000 (08:24 +0000)
commit6850fafd27ba804d4d4ca8af404beed5574e3749
tree2ba9aa54501f863dc19b7e2ea65999461c1f3aeb
parente531001b7e44bee5c4ec0be93efbc75adb37a0e3
PR9546, DR1268: A prvalue cannot be reinterpret_cast to an rvalue reference
type. But a glvalue can be reinterpret_cast to either flavor of reference.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155789 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCast.cpp
test/CXX/expr/expr.post/expr.reinterpret.cast/p1-0x.cpp