[LLVMbugs] [Bug 16355] Missing -Wuninitialized warning in superclass initialization

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 24 15:54:34 PDT 2014


Nick Lewycky <nlewycky at google.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |nlewycky at google.com
         Resolution|---                         |FIXED

--- Comment #2 from Nick Lewycky <nlewycky at google.com> ---
Initial bug:
pr16355-1.cc:16:17: warning: field 'f_' is uninitialized when used here
  Sub() : Super(f_.x_) {}  // Should warn here
1 warning generated.

Richard's example:
pr16355.cc:3:13: warning: field 'b' is uninitialized when used here
  Foo() : a(b), b(0) {}
1 warning generated.

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/20140324/8143bdc7/attachment.html>

More information about the llvm-bugs mailing list