[cfe-dev] Implicit declaration of type_info
sebastian.redl at getdesigned.at
Fri Jul 9 21:08:58 PDT 2010
On 07/09/2010 08:41 PM, Steven Watanabe wrote:
> MSVC implicitly declares type_info in the global scope.
> and at least one header (eh.h) depends on this. I'm not
> having any luck figuring out how to mirror this behavior
> in clang (obviously only in Microsoft compatibility mode).
> I figured that the best place to put it would be with the
> declarations of operator new and delete, but I could not
> find where that is. Help?
Sema::DeclareGlobalNewDelete, in SemaExprCXX.cpp, around line 1200.
Beware, though, this function is lazily called only when we have to look
up a global operator new/delete for the first time.
More information about the cfe-dev