[llvm-bugs] [Bug 24795] New: [analyzer] False positive: Called C++ object pointer is uninitialize

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 12 11:57:15 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24795

            Bug ID: 24795
           Summary: [analyzer] False positive: Called C++ object pointer
                    is uninitialize
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: hiraditya at msn.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

struct T{
  void hello() {}

};

int main()
{
  auto&& x = T();
  x.hello(); // issue at this point
  return 0;
}

Diagnostic:
test.cpp:9:3: warning: Called C++ object pointer is uninitialized
  x.hello(); // issue at this point
  ^~~~~~~~~
1 warning generated.

Reference:
http://stackoverflow.com/q/32539825/811335

-- 
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/20150912/a379b81d/attachment.html>


More information about the llvm-bugs mailing list