[omniORB] omniidl (2.8.0 pre-release 1) Bug?

Ken Feuerman kfeuerma@Adobe.COM
Fri, 06 Aug 1999 16:27:58 -0700


Suppose I have the following IDL:

// idltest.idl:
module M
{
    interface A
    {
        typedef short Arr[4];
        void meth(out Arr arrayArg);
    };

};


When building under MSVC++ 5.0, I get a compile-time error:

idltest.h(106) : error C2027: use of undefined type 'A'

The compiler error is referring to a C++ typedef for Arr_out in the
generated header.  If I modify the IDL so that the definition of Arr is
outside the scope of A, the compiler error goes away.

This problem did not exist with omniORB 2.6.0; I have not tried this with
omniORB 2.7.x.  Is this a bug with omniidl, or with the compiler?

Thanks!

--Ken Feuerman.
Adobe Systems, Inc.