<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 1:31 AM, Domagoj Saric <span dir="ltr"><<a href="mailto:domagoj.saric@littleendian.com" target="_blank">domagoj.saric@littleendian.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 24.2.2014. 7:53, David Majnemer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't think it would be unreasonable for us to maintain a list of things we do<br>
and do not claim to support.<br>
</blockquote>
<br></div>
FWIW, MSVC's RTTI implementation has one nice property (which I'd like if Clang could also 'emulate'): it (dynamic_cast) does not crash on objects w/o an RTTI record (while Clang under OSX always crashed for me in those cases).<br>

Such a case, for example, often arises if you use a (lame) GUI library which requires RTTI (because it relies on dynamic_cast and cross-casting) so you enable RTTI for its sources but disable it for others/your own sources (in order to minimize bloat and the leaking of internal implementation details as plain text in the final binary). Then when the GUI lib calls dynamic_cast on one of your own objects (because you, for example, added it to some widget container) it will simply get a nullptr result with MSVC (while, as I mentioned, you'll get a crash with Clang)...</blockquote>
<div><br></div><div>Are you suggesting Clang crashes, or Clang produces a program that crashes?<br><br>In any case, I don't think either would be intended - you should either get a compile-time error (because the type isn't dynamic) or a runtime check (null or non-null, not a crash).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
-- <br>
Domagoj Saric<br>
Software Architect<br>
<a href="http://www.LittleEndian.com" target="_blank">www.LittleEndian.com</a></font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">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/<u></u>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div></div>