After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 115493 - generated everything-common.h doesn't compile
generated everything-common.h doesn't compile
Status: RESOLVED FIXED
Product: orbit-cpp
Classification: Deprecated
Component: idl-compiler
1.3
Other Linux
: Normal normal
: ---
Assigned To: Bowie Owens
Bowie Owens
Depends on:
Blocks:
 
 
Reported: 2003-06-18 22:38 UTC by Bowie Owens
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2


Attachments
everything.idl generates bad code from idl-compiler (7.67 KB, text/plain)
2003-06-18 22:39 UTC, Bowie Owens
Details

Description Bowie Owens 2003-06-18 22:38:21 UTC
The idl-compiler generates code that does not compile for the following
file (everything.idl slightly modified from the version in ORBit2). Things
start going astray around line 227 where a class definition is messed up:

namespace test
{
        class DerivedServer_ptr{
        ::test::DerivedServer *m_target;
public:
                DerivedServer_ptr() : m_target (0) {};
                DerivedServer_ptr(::test::DerivedServer *ptr) :
m_target(ptr) {};
                        DerivedServer_ptr &operator =(::test::DerivedServer
*ptr)
                {
m_target = ptr;
return *this;
                }
...
Comment 1 Bowie Owens 2003-06-18 22:39:32 UTC
Created attachment 17612 [details]
everything.idl generates bad code from idl-compiler
Comment 2 Bowie Owens 2003-07-08 22:29:20 UTC
I have fixed most of the problems with the idl-compiler that this IDL
file shows up. I am down to one last problem, unions. The accessors
for union members are not handled correctly for special cases. This
shows up in the IDL file as an inappropriate return value for the
Array accessors (it tries to return the array by value when it needs
to return a slice). However, the idl-compiler also fails to generate
referent (accessor function which returns an non-const reference)
functions for the types for which these should exist (Struct, Union,
...). I have commented here because I am not sure how long it will be
before I fix this.
Comment 3 Bowie Owens 2004-04-15 00:12:31 UTC
Everything.idl now compiles. See changelog:
2004-04-15 Bowie Owens <bowie.owens@csiro.au>