<div dir="ltr"><div><div><div>Hi all,<br><br></div>When taking the typeinfo of a pointer to incomplete type, clang++ emits type info for the pointer in the resulting binary, but makes that typeinfo non-external (on osx at least). Is this intended? I'd have expected it to be weak external so that when the type is defined in other compilation units, the typeinfo isn't defined multiple times.<br><br></div>sample code:<br><br>#include <typeinfo><br>#include <iostream><br>class SomeClass;<br><br>int main()<br>{<br>  std::cout << typeid(SomeClass*).name() << std::endl;<br>}<br><br></div>when running nm -m on the resulting binary, it contains:<br><br>0000000000000414 (__TEXT,__const) non-external __ZTSP9SomeClass<br><br></div>