]> granicus.if.org Git - clang/commit
Emit warnings if we are returning a reference to a local temporary.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 29 Nov 2010 22:32:08 +0000 (22:32 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 29 Nov 2010 22:32:08 +0000 (22:32 +0000)
commit8b2f01b56209f4bb7331292225c5300753880044
treea6e0d0ab791aa98f093c1c93de470eb30acb1bdd
parent08e41a656575ee63f8eefc7805493055c645fa85
Emit warnings if we are returning a reference to a local temporary.
The issue was brought to our attention by Matthieu Monrocq.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120331 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Analysis/stack-addr-ps.cpp
test/SemaCXX/rval-references.cpp