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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to