[omniORB] struct forward declaration under interface scope

Duncan Grisby duncan@grisby.org
Mon Mar 31 17:03:01 2003


On Thursday 27 March, =?iso-8859-1?Q?Jo=E3o_Leal?= wrote:

> If I try to forward declare a struct, in the scope of an interface, the
> code generated by omniidl fails to compile under msvc.

Thanks for the bug report. The issue is really a bug in MSVC, in that
the generated code is valid C++. The bug in MSVC has existed since at
least version 4. The work-around to use the locally scoped name
instead of the globally scoped one is easy. I don't think the change
breaks on any other compilers (unlike use in constructors which does
fail on some), so I've checked the change in to CVS.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --