Skip Menu |

This queue is for tickets about the CORBA-XMLSchemas CPAN distribution.

Report information
The Basics
Id: 14473
Status: resolved
Priority: 0/
Queue: CORBA-XMLSchemas

People
Owner: PERRAD [...] cpan.org
Requestors: john.kavadias [...] nec.com.au
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.40
Fixed in: (no value)



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
OK, so our idl compiler is too forgiving, and enum names, enum value names, and typedef names all occupy the same namespace. Please close this as something like 'resolved, operator error'. Thanks for your time.
Conforme with CORBA-IDL specifications.