<typeinfo>: Error with import std; and typeid(T).name() - #3677
Conversation
|
Is this conforming? I'm okay with "no, but it needs to not be conforming for our implementation", but I'm wondering if it'd be possible to make the compiler search in |
|
Cameron DaCamara (@cdacamar) said on Discord:
The Standardese that I wrote, N4944 [std.modules]/6, says:
IMO it's slightly nonconforming to emit In practice I think it's easiest to just make this special exception and not worry about it further. |
|
I suppose I can live with this as extending our pre-existing non-conformance into the Modules Universe. |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Cameron DaCamara (@cdacamar) explained that in this case, the MSVC compiler looks for the True Name of
type_infoin the global namespace, so we need to export it as a special exception.I'm adding test coverage for this scenario. The
using namespace std;in this test doesn't actually affect the repro, so I didn't bother to remove it.Fixes DevCom-10349749 and internal VSO-1810086 / AB#1810086 .