<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Nov 6, 2017, at 1:42 AM, Mahesh Attarde via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><div class=""><div dir="ltr" class=""><div class="">Hello <br class=""></div>I tried to run simple check with following example<br class=""><div style="background-color: rgb(255, 255, 254); font-family: 'Fira Mono'; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;" class=""><div class=""><span style="color:rgb(0,0,255)" class=""><br class=""></span></div><div class=""><span style="color:rgb(0,0,255)" class="">int</span><span style="" class=""> foo(){</span></div><div class=""><span style="" class=""> </span><span style="color:rgb(0,0,255)" class="">int</span><span style="" class=""> f[</span><span style="color:rgb(9,136,90)" class="">10</span><span style="" class="">];</span></div><div class=""><span style="" class=""> </span><span style="color:rgb(0,0,255)" class="">return</span><span style="" class=""> f[</span><span style="color:rgb(9,136,90)" class="">0</span><span style="" class="">];</span></div><div class=""><span style="" class="">}</span></div><div class=""><span style="" class=""><br class=""></span></div><div class=""><span style="" class="">with clang 5.0.0 -Wuninitialized There is no error.</span></div><div class=""><span style="" class=""><br class=""></span></div><div class=""><span style="" class="">with gcc 7.2.0 -Wuinitialized we get error.</span></div></div></div></div></blockquote><div><br class=""></div>I'm sure it's just a limitation of our current analysis that could be fixed. It's worth a bug, yes.</div><div><br class=""></div><div>John.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div style="background-color: rgb(255, 255, 254); font-family: 'Fira Mono'; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;" class=""><div class=""><br class=""><div class="gmail-lm_items" style="width:541px;height:700px"><div class="gmail-lm_item_container" style="width:541px;height:700px"><div class="gmail-lm_content" style="width:540.6px;height:699.6px"><pre class="gmail-content" style="font-size:10pt"><div class=""><span style="font-family:monospace,monospace" class=""><source>: In function 'int foo()':</span></div><div class=""><span style="font-family:monospace,monospace" class="">5 : <source>:5:16: warning: 'f[0]' is used uninitialized in this function [-Wuninitialized]</span></div><div class=""><span style="font-family:monospace,monospace" class=""> return f[0];</span></div><div class=""><span style="font-family:monospace,monospace" class=""> ^</span></div><div class=""><span style="font-family:monospace,monospace" class="">Compiler exited with result code 0</span></div><div class=""><span style="font-family:monospace,monospace" class=""><br class=""></span></div><div class=""><span style="font-family:monospace,monospace" class="">Wonder why?<br class=""></span></div><div class=""><span style="font-family:monospace,monospace" class="">Should i raise request on bugzilla ?</span></div></pre></div></div></div></div></div></div></div></blockquote></div><br class=""></body></html>