-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illegal IDL union accepted by tao_idl #2279
Comments
Coming from OpenDDS/OpenDDS#4782 |
It's a weird case, but I'm not seeing something in the IDL spec that explicitly disallows this. |
It was in IDL v3 https://www.omg.org/spec/CORBA/3.3/Interfaces/PDF, I'm not sure why IDL v4 dropped it |
This? I see it in 4.2 now, it moved into the bottom of the first "Note" in the union section. Alright, so it does explicitly disallow this, assuming "range" is all the valid enum values and not just the underlying integer type. |
Right, so I guess I just didn't find it in 4.2. The union discriminator is defined by the enum type, not the underlying type. |
The following IDL is illegal but accepted by tao_idl, ridlc rejects it with
IDL::ParseError: 'default' case label superfluous for IDL::AST::Union UnionTypeTest
The text was updated successfully, but these errors were encountered: