Bug 2837

Summary: IDL compiler should check union case labels should be unique
Product: TAO Reporter: Johnny Willemsen <jwillemsen>
Component: IDL CompilerAssignee: DOC Center Support List (internal) <tao-support>
Status: NEW ---    
Severity: minor    
Priority: P5    
Version: 1.5.6   
Hardware: All   
OS: All   

Description Johnny Willemsen 2007-03-01 09:17:31 CST
IDL compiler doesn't check if union case labels are unique which leads to not
compiling C++.

From corba spec:
Name scoping rules require that the element declarators in a particular
union be unique.

invalid IDL that is accepted:
 enum ValueSort2 {
    SYMBOL_TYPE2
  };
  union NonRecursiveUnionWithStringStruct switch (ValueSort2) {
  case SYMBOL_TYPE2:
    Symbol2 symbol_val;
  case SYMBOL_TYPE2:
    Symbol2 symbol_val2;
  };
Comment 1 Johnny Willemsen 2007-03-01 13:37:33 CST
lowering priority