Subject: | Value name in an enum and target name of a typedef cannot share identifier |
This issue may be related to another submitted issue:
Bug #14472 Multiple IDL enums reusing an identifier for a value name cause 'already exists'
In one IDL file we have:
enum EnumName
{
EnumValueName1,
EnumValueName2,
EnumValueName3
};
In another IDL file we have:
typedef unsigned short EnumValueName2;
The same identifier name is used for both an enum value and a typedef.
These are both included by a third IDL file.
The error is:
#path/to/idl/file.idl:line#Error: Identifier 'EnumValueName2' already exists.
This is not so bad for new IDL, which can follow better naming conventions.
It *is* a problem for IDL already in production.
Module Version: 0.40
CORBA-XMLSchemas-0.40
Perl Version: 5.8.5
v5.8.5 built for i386-linux-thread-multi
Operating System: Fedora Core 3
Linux <host> 2.6.10-1.766_FC3 #1 Wed Feb 9 23:06:42 EST 2005 i686 i686 i386 GNU/Linux