[cfe-dev] [clang-cl] cannot mangle RTTI descriptors error despite RTTI disabled with /GR-

Reid Kleckner rnk at google.com
Sat Dec 28 17:48:37 PST 2013


It's trying to use RTTI for exceptions.  You can attempt to disable the
exception handling code by passing -D_HAS_EXCEPTIONS=0, but Microsoft
doesn't fully support this.  For now, I use it while self-hosting clang
with clang-cl.


On Sat, Dec 28, 2013 at 3:04 PM, Astron B <boldaster at gmail.com> wrote:

> Hey guys,
>
> Despite disabling RTTI using the /GR- argument I still get the following
> errors while trying to compile code that uses the STL vector with clang-cl:
>
> F:\LLVM-fresh\vs11\bin\Debug>clang-cl /c /GR- testdll.cpp
> error: cannot mangle RTTI descriptors for type 'bad_alloc' yet
> error: cannot mangle the name of type 'bad_alloc' into RTTI descriptors yet
> error: cannot mangle RTTI descriptors for type 'exception' yet
> error: cannot mangle the name of type 'exception' into RTTI descriptors yet
> 4 errors generated.
>
> Thanks for any assistance!
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131228/2e51af7f/attachment.html>


More information about the cfe-dev mailing list