I'd say that test above the one I added also produces a false positive. I was under the impression that r-value won't bind to l-value and is safe to return, am I missing something?
Diff Detail
Diff Detail
Paths
| Differential D15588
PR25356 - False positive with -Wreturn-stack-address Needs ReviewPublic Authored by nikola on Dec 16 2015, 2:39 PM.
Revision Contents
Diff 43066 lib/Sema/SemaChecking.cpp
test/SemaCXX/rval-references.cpp
|