Bug Report no. 49

attlogo6876_dk.gif (2280 bytes)

sideHome.gif (2321 bytes) sideDownload.gif (2450 bytes) sideDocumentation.gif (2512 bytes) sideFAQ.gif (2344 bytes) sidePatch.gif (2543 bytes) sideSearch.gif (2403 bytes)

Reported By

Jon Towne

Date

16 Feb 1999

Platforms

All

Version

omniORB 2.7.0 and earlier

Description

omniidl2 generates incorrect code for IDL array types whose element type is also an array. This is likely to cause unexpected exceptions, and in some cases the generated code does not compile. This problem does not effect multi-dimensional arrays, only nested arrays.

For example, the following generates incorrect code:

    // IDL
    typedef octet inner[8];
    typedef inner middle[2];
    typedef middle outer[6];

The following works without problems:

    // IDL
    typedef octet outer[6][2][8];

Patch

Apply this patch.

The patch changes src/tool/omniidl2/omniORB2_be/o2be_array.cc

 

For comments, feedback, etc, please see the 'Keeping in touch' page.
Copyright 1999 - AT&T Laboratories Cambridge