<div dir="ltr">Hi,<div><br></div><div>I just read <a href="http://llvm.org/bugs/show_bug.cgi?id=18332">http://llvm.org/bugs/show_bug.cgi?id=18332</a> </div><div>and <a href="http://llvm.org/bugs/show_bug.cgi?id=17403">http://llvm.org/bugs/show_bug.cgi?id=17403</a> after finding the following issue (first attempt at using the toolchain for windows).</div>
<div>Am I correct that the following problem is also due to the lack of RTTI support? <br></div><div>It looks like I can't use std::array. </div><div><br></div><div>Program (compiled with LLVM-VS2013):</div><div><br></div>
<div><div>    #include <array></div><div>    int main()</div><div>    {</div><div>        std::array<int,42> my_array;</div><div>    }</div><div><br></div><div>Output:</div><div><br></div><div><div>------ Build started: Project: Test_ClangToolchain, Configuration: Debug Win32 ------</div>
<div>1>clang-cl.exe : warning : argument unused during compilation: '/ZI'</div><div>1>clang-cl.exe : warning : argument unused during compilation: '/Gm'</div><div>1>clang-cl.exe : warning : argument unused during compilation: '/EHsc'</div>
<div>1>clang-cl.exe : warning : argument unused during compilation: '/GS'</div><div>1>clang-cl.exe : warning : argument unused during compilation: '/fp:precise'</div><div>1>clang-cl.exe : warning : argument unused during compilation: '/FdDebug\vc120.pdb'</div>
<div>1>clang-cl.exe : warning : argument unused during compilation: '/Gd'</div><div>1>main.cpp(4,23): warning : unused variable 'my_array' [-Wunused-variable]</div><div>1>      std::array<int,42> my_array;</div>
<div>1>                         ^</div><div>1>CL : error : cannot mangle RTTI descriptors for type 'codecvt' yet</div><div>1>CL : error : cannot mangle the name of type 'codecvt' into RTTI descriptors yet</div>
<div>1>CL : error : cannot mangle RTTI descriptors for type 'codecvt_base' yet</div><div>1>CL : error : cannot mangle the name of type 'codecvt_base' into RTTI descriptors yet</div><div>1>CL : error : cannot mangle RTTI descriptors for type 'facet' yet</div>
<div>1>CL : error : cannot mangle the name of type 'facet' into RTTI descriptors yet</div><div>1>CL : error : cannot mangle RTTI descriptors for type '_Facet_base' yet</div><div>1>CL : error : cannot mangle the name of type '_Facet_base' into RTTI descriptors yet</div>
<div>1>  1 warning and 8 errors generated.</div><div>Build has been canceled.</div><div>Build Summary</div><div>-------------</div><div>00:02.032 - Failed  - Debug Win32 - Test_ClangToolchain\Test_ClangToolchain.vcxproj</div>
<div><br></div><div>Total build time: 00:02.032</div><div><br></div><div>========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped, Completed at 2014/02/02 01:33:41 ==========</div></div><div><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jan 8, 2014 at 8:57 PM, David Majnemer <span dir="ltr"><<a href="mailto:david.majnemer@gmail.com" target="_blank">david.majnemer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Hello Daniel,<div><br></div><div>I am currently working on an implementation of RTTI for MSVC compatibility.  As it stands, there is a lot left to do.</div><div><br></div><div>If you'd like to help me, I think a good first step that has to happen is to achieve an understanding of what the different flags mean in the Base Class Descriptors.</div>

<div><br></div><div>I'm available on IRC if you have any specific questions.</div><div><br></div><div>-- </div><div>David Majnemer</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">
On Wed, Jan 8, 2014 at 11:20 AM, Daniel Olivier <span dir="ltr"><<a href="mailto:dan_olivier@hotmail.com" target="_blank">dan_olivier@hotmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">


<div><div dir="ltr">Hello,<div><br></div><div>I've recently started using Clang on Windows (VC10), and quickly ran into this limitation.</div><div>I have started to try to split the code paths into Itanium-specific and Microsoft-specific methods, but lack a bit of experience with Clang to really get this off the ground. </div>

<div><br></div><div>Undoubtedly, I'm making a serious mistake, but it seems to me that this is a serious limitation (in the Windows world, where it is not at all common practice to have access to all the source code for all the dependencies). I see this as a problem stemming from the failure to link with existing libraries (precompiled with MS-style compilers, such as the CRT), and therefore an ABI issue.</div>

<div><br></div><div>I would like to help to try to produce a solution. I've seen the code and realize this is a large <span style="font-size:12pt">(huge?) </span><span style="font-size:12pt">undertaking. Is it even thinkable (for some reason that escapes now me)?</span></div>

<div><br></div><div>The question is: who has any specific knowledge of this part of the code (RTTI and virtual table construction)? Among those people, are there any who could spare some time to comment on this undertaking and perhaps provide a bit of guidance? Has anyone already tried to do this, or has it slated?</div>

<div><br></div><div>Thanks,</div><div>Dan</div><div><br></div>                                        </div></div>
<br></div></div>_______________________________________________<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/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>
<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><br></div></div></div>