[omniORB] bug report: omniidl

Ralf Hupfer hupfer@ivi.fhg.de
Tue Jul 30 07:09:01 2002


--Message-Boundary-5879
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

Hi,

I think I've found a bug in the omniidl compiler. When compiling the
attached IDL with -bcxx -Wba -Wbh=.h -Wbs=.cpp -Wbd=.cpp, the 
output file
can not be compiled by gcc. The error occurs at line 362:

void operator<0::alignedSize(CORBA::ULong msgsize)
{
  msgsize = arg_0._NP_alignedSize(msgsize);

  return msgsize;
}

The operator looks a bit funny. But I found a work around for this 
problem: When compiling the idl with the options -bcxx -Wba -Wbh=.h -
Wbs=.cpp only, thus forcing the compiler to produce a separated 
*DynSK.* file with standard suffix .cc, both files pass the C++ compiler 
without errors.

I am using omniORB 3.04 for Linux on an i586-compatible 
maschine. The problem also applies to the Windows version of omniidl 
(the buggy code looks a bit different there).

With Kind Regards
Ralf


--Message-Boundary-5879
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  code.zip
     Date:  30 Jul 2002, 7:50
     Size:  6660 bytes.
     Type:  ZIP-archive

--Message-Boundary-5879
Content-type: Application/ZIP; name="code.zip"
Content-disposition: attachment; filename="code.zip"
Content-transfer-encoding: BASE64

UEsDBBQAAgAIAB168Sz0iyWhbwsAAHpBAAAKAAAASUNUUm91dGUuaO1cW2/bOBZ+96/gTgFD
9rhptvMwQJwESJNMx4AvWccpFigGhGzRtqay5JHkttki89v38CqSouRLPANsN0GR2OThx3Pn
IUX1zRs0WYYZmocRQfB3QWKS+jkJ0PQRJas4DIMIedc//oim/uwTiYPWa9Y8Gr/DP+HTE3ST
oDjJEQnC/KTxKpzHAZkjjHvXk3GyyQleLjFuvILGMCaldjXg4f4WS9goWdznKfFXalh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