Bug 2837 - IDL compiler should check union case labels should be unique
Summary: IDL compiler should check union case labels should be unique
Status: NEW
Alias: None
Product: TAO
Classification: Unclassified
Component: IDL Compiler (show other bugs)
Version: 1.5.6
Hardware: All All
: P5 minor
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks:
 
Reported: 2007-03-01 09:17 CST by Johnny Willemsen
Modified: 2018-01-15 11:21 CST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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