<div class="gmail_quote">On Mon, Jun 18, 2012 at 11:38 AM, Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info" target="_blank">anton@korobeynikov.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> I'm not sure this bug applies here, since it's the program generated *by*<br>
> Clang that is crashing, not Clang itself.  This leads me to believe it is a<br>
> codegen issue somewhere within Clang and not a mis-compile of Clang itself.<br>
>  Or perhaps its a subtle bug in MinGW's libstdc++ 4.7.0 build.<br>
> Everything does work fine if I downgrade to MinGW 4.6.3.<br>
</div>This smells like static ctors problem described by Rafael on<br>
llvm-commits. What if you change the .ctors section to .init_array?<br></blockquote><div><br></div><div>I tried with:</div><div>+  <span class="Apple-tab-span" style="white-space:pre">      </span>.section<span class="Apple-tab-span" style="white-space:pre">    </span>.ctors,"w"</div>
<div>-  <span class="Apple-tab-span" style="white-space:pre">   </span>.section<span class="Apple-tab-span" style="white-space:pre">    </span>.init_array,"w"</div><div><br></div><div>and re-assembled (as)/re-linked (collect2) the executable, but the problem still persists.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
--<br>
With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>