[cfe-dev] C++ Language Support Library
Argiris Kirtzidis
akyrtzi at gmail.com
Mon Nov 10 01:16:25 PST 2008
Eli Friedman wrote:
> Is there something wrong with having Sema just look up the identifier
> "std::type_info" when it's processing a typeid?
>
Sounds good! We can also check if the SourceLocation is in a system
header and emit an error on something like this (which gcc happily accepts):
namespace std { class type_info {}; }
void f() { typeid(f); }
-Argiris
More information about the cfe-dev
mailing list