[omniORB] C++20 support broken with omniORB 4.3.0 beta

Thomas Braun thomas.braun at byte-physics.de
Fri Jun 12 18:52:25 UTC 2020


Hi,

I'm trying out the 4.3.0 beta version with cppTango [1].

It now does compile with c++17. Horray!

But I also get a new compile error with c++20

#################################################################
In file included from /usr/local/include/omniORB4/CORBA.h:208,
                 from /home/firma/devel/cppTango/build-
gcc/cppapi/server/idl/tango.h:6,
                 from
/home/firma/devel/cppTango/cppapi/server/tango.h:45,
                 from
/home/firma/devel/cppTango/cppapi/server/attribute.cpp:38:
/usr/local/include/omniORB4/omniIOR.h:246:32: error: expected ‘,’ or
‘...’ before ‘requires’
  246 |          _CORBA_UShort         requires,
      |                                ^~~~~~~~
In file included from /usr/local/include/omniORB4/CORBA.h:208,
                 from /home/firma/devel/cppTango/build-
gcc/cppapi/server/idl/tango.h:6,
                 from
/home/firma/devel/cppTango/cppapi/server/tango.h:45,
                 from
/home/firma/devel/cppTango/cppapi/server/attrgetsetprop.cpp:36:
/usr/local/include/omniORB4/omniIOR.h:246:32: error: expected ‘,’ or
‘...’ before ‘requires’
  246 |          _CORBA_UShort         requires,
      |                                ^~~~~~~~
In file included from /usr/local/include/omniORB4/CORBA.h:208,
                 from /home/firma/devel/cppTango/build-
gcc/cppapi/server/idl/tango.h:6,
                 from
/home/firma/devel/cppTango/cppapi/server/tango.h:45,
                 from
/home/firma/devel/cppTango/cppapi/server/attrsetval.cpp:36:
/usr/local/include/omniORB4/omniIOR.h:246:32: error: expected ‘,’ or
‘...’ before ‘requires’
  246 |          _CORBA_UShort         requires,
      |                                ^~~~~~~~
make[2]: ***
[cppapi/client/CMakeFiles/client_objects.dir/build.make:157:
cppapi/client/CMakeFiles/client_objects.dir/dbapi_cache.cpp.o] Fehler 1
In file included from /usr/local/include/omniORB4/CORBA.h:208,
                 from /home/firma/devel/cppTango/build-
gcc/cppapi/server/idl/tango.h:6,
                 from
/home/firma/devel/cppTango/cppapi/server/tango.h:45,
                 from
/home/firma/devel/cppTango/cppapi/server/attrmanip.cpp:36:
/usr/local/include/omniORB4/omniIOR.h:246:32: error: expected ‘,’ or
‘...’ before ‘requires’
  246 |          _CORBA_UShort         requires,
      |                                ^~~~~~~~
In file included from /usr/local/include/omniORB4/CORBA.h:208,
                 from /home/firma/devel/cppTango/build-
gcc/cppapi/server/idl/tango.h:6,
                 from
/home/firma/devel/cppTango/cppapi/server/tango.h:45,
                 from
/home/firma/devel/cppTango/cppapi/server/basiccommand.cpp:38:
/usr/local/include/omniORB4/omniIOR.h:246:32: error: expected ‘,’ or
‘...’ before ‘requires’
  246 |          _CORBA_UShort         requires,
      |                                ^~~~~~~~
#################################################################


I think this is due to requires [2] being a keyword.

Could that be fixed?

Thanks,
Thomas

[1]: https://github.com/tango-controls/cppTango/
[2]: https://en.cppreference.com/w/cpp/keyword/requires





More information about the omniORB-list mailing list