[llvm-bugs] [Bug 26396] New: [3.8 regression] -Wreturn-stack-address false positives

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 30 11:27:51 PST 2016


            Bug ID: 26396
           Summary: [3.8 regression] -Wreturn-stack-address false
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm at bobbyperu.info
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Since very recently we're getting false-positive -Wreturn-stack-address

template <class T>
class QMap
    T value(const T &t = T()) const
        return t;

struct A {};

void test()
    QMap<A*> map;

$ clang++ testcase.cpp  -c
testcase.cpp:7:16: warning: returning address of local temporary object

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/20160130/87af9272/attachment.html>

More information about the llvm-bugs mailing list