[llvm-bugs] [Bug 38291] New: Incorrect return stack address warning for pointer-to-member function expression
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 24 15:12:26 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38291
Bug ID: 38291
Summary: Incorrect return stack address warning for
pointer-to-member function expression
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: dcallahan at fb.com
CC: llvm-bugs at lists.llvm.org
Created attachment 20598
--> https://bugs.llvm.org/attachment.cgi?id=20598&action=edit
Short C++ program to demonstrate the bug
A bug was introduced so that a return such as
Link & n = f->*Ptr;
return n.next;
generates an incorrect warning about a stack address being returned.
I bisected this problem to
commit 354438d88cbb857858ffcbde72d4723b8548ce0a
Author: Richard Smith <richard-llvm at metafoo.co.uk>
Date: Mon Jul 23 21:21:22 2018 +0000
Fold -Wreturn-stack-address into general initialization lifetime
checking.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337743
91177308-0d34-0410-b5e6-96231b3b80d8
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180724/4b8a8333/attachment-0001.html>
More information about the llvm-bugs
mailing list