It looks like if I have two enum’s in a C# class library that
contain values with the same name and then try to reference the
library in a managed C++ project, I get a C1001 internal compiler
error. I guess that is one way to find duplicate names (although it
took ages to track down the reason).