<p dir="ltr">Your cyclic flag is uninitialized.</p>
<div class="gmail_quote">On 29 Jun 2013 11:34, "Shriramana Sharma" <<a href="mailto:samjnaa@gmail.com">samjnaa@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello. I'm using Kubuntu Raring 64 bit with libstdc++ 4.8.1 (from the<br>
ubuntu-toolchain-r PPA) and Clang 3.2 (default Raring package). I have<br>
now built and installed libc++ from latest SVN revision 185264 against<br>
libsupc++ as per the instructions at <a href="http://libcxx.llvm.org" target="_blank">libcxx.llvm.org</a>.<br>
<br>
I find that the attached simple code prints the "out_of_range was<br>
thrown" message from within the catch block when compiled with<br>
libstdc++ but when compiled with libc++ it is not printed. Curiously,<br>
if the cout<< line (which I have commented out) in the try block is<br>
executed, then the exception is thrown and the message printed.<br>
Commenting out the cout<< line again makes the exception go away.<br>
<br>
I encountered this problem yesterday with some other code in my<br>
project but I wasn't able to provide a minimal example but this code<br>
is pretty minimal so I hope the problem can be identified easily and<br>
fixed.<br>
<br>
Thank you for Clang and libc++ -- it has already caught two instances<br>
of non-standards-compliance in my code which libstdc++ didn't.<br>
<br>
--<br>
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा<br>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div>