]> granicus.if.org Git - clang/commit
PR16263: Implement current direction of core issue 1376. Binding a reference to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 15 Jun 2013 00:30:29 +0000 (00:30 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 15 Jun 2013 00:30:29 +0000 (00:30 +0000)
commitd6b698739ab157348acafcec5b06a05d3d35377d
treefe49f6bccec91f07f71f6e5540d37f7c57b59774
parent41cb3d90c2114a7df7aa04f80c8be4b62994fb0d
PR16263: Implement current direction of core issue 1376. Binding a reference to
the result of a cast-to-reference-type lifetime-extends the object to which the
reference inside the cast binds.

This requires us to look for subobject adjustments on both the inside and the
outside of the MaterializeTemporaryExpr when looking for a temporary to
lifetime-extend (which we also need for core issue 616, and possibly 1213).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184024 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
lib/Sema/SemaInit.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p11-1y.cpp
test/CodeGenCXX/temporaries.cpp