<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 14, 2020 at 3:19 AM László Radnai via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A problem arises, and I am not sure if it is really a problem or just weird C-compliant behavior.<br><br>int a; // or, equally, int a=0;<br><br>int main(){<br>  int b;<br>  if (b) // (*)<br></blockquote><div><br></div><div>At this line, you invoke undefined behavior by reading the value of "b", before it's been initialized. At this point, the compiler may do whatever it likes.</div><div><br></div></div></div>