[omniORB] Another bug in omniidl 4.1.3 cxx backend

Will Denissen Will.Denissen at asml.com
Tue Nov 25 15:52:58 GMT 2008


Dear Duncan,
 
The following small idl file reveals a bug in omniidl 4.1.3 cxx backend
 
------------------- bug2.idl  ---------------------------------
module M1 {
  struct S {
    long  T;
  };
 
  typedef ::M1::S  A[4];
};
 
module M2 {
  typedef ::M1::S  A[2];
};
------------------- end of bug2.idl ---------------------------
 
feeding the generated C++ code to the compiler gives:
 
bug2.hh: In static member function 'static M2::A_slice*
M2::A_copyHelper::dup(const M2::A_slice*)':
bug2.hh:166: error: call of overloaded 'A_dup(const M2::A_slice*&)' is
ambiguous
bug2.hh:136: note: candidates are: M2::A_slice* M2::A_dup(const
M2::A_slice*)
bug2.hh:84: note:                 M1::A_slice* M1::A_dup(const
M1::A_slice*)
bug2.hh: In static member function 'static void
M2::A_copyHelper::free(M2::A_slice*)':
bug2.hh:167: error: call of overloaded 'A_free(M2::A_slice*&)' is
ambiguous
bug2.hh:159: note: candidates are: void M2::A_free(M2::A_slice*)
bug2.hh:107: note:                 void M1::A_free(M1::A_slice*)
 
Best regards,
 
Will Denissen


-- 
The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited.  Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities.  To the extent you are relying on this information, you are doing so at your own risk.   If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20081125/2a9e425e/attachment.htm


More information about the omniORB-list mailing list