OpenRTM / OpenRTM-aist

OpenRTM-aist: RT-Middleware and OMG RTC implementation in C++ implemented by AIST
https://openrtm.org/
Other
19 stars 12 forks source link

Undefined behavior on pointer deletion #80

Closed r-kurose closed 5 years ago

r-kurose commented 5 years ago

Describe the bug C++ の未定義動作である不完全型の delete に依存している。

To Reproduce

  1. install clang
  2. clang++ -Wdelete-incomplete xxx.cpp

Reproducibility 100%

Expected behavior 未定義動作ないこと。コンパイラに未定義動作を認識されないこと。

Screenshots or Logs

/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]};  // namespace RTC_impl
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
94:/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h5::197 :warning15: :deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete] 
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/build_clang/src/lib/rtm/idl/SDOPackage.hh/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h::155994::485::  warningwarning: : zero as null pointer constant [-Wzero-as-null-pointer-constant]deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
:deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]        ^ 
:5: warning:    * @param seq 要素検索対象の CORBA sequencedeleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
: 912warning:: 15     * @brief [CORBA interface] Port の接続を行うdeleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]:
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning:      * @brief RTコンポーネントを参加者リストから削除するdeleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5:/root/OpenRTM-aist/build_clang/src/lib/rtm/idl/RTC.hh :warning2560: :deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]100
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
94/root/OpenRTM-aist/src/lib/rtm/../rtm/ExecutionContextBase.h::5894:: 9warning::  deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]note
:5: warning:     virtual void write(const DataType& data)deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
warning: : extra ';' after member function definition [-Wextra-semi]deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
5/root/OpenRTM-aist/build_clang/src/lib/rtm/idl/DataPort_OpenRTM.hh:: 517warning:: 10deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]:
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
 warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]   * @brief Guard template class
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
: /usr/include/omniORB4/omniORB.hwarning:: 674deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]:
:5/root/OpenRTM-aist/src/lib/rtm/../rtm/ConnectorListener.h:: 541warning:: 15deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]:
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
 warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
5/root/OpenRTM-aist/src/lib/rtm/../rtm/ConfigAdmin.h:: 307warning:: 9deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]:
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h/root/OpenRTM-aist/src/lib/rtm/../rtm/NumberingPolicyBase.h::94117::59::  warningwarning: : deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]duplicated command '@brief' [-Wdocumentation]
 /root/OpenRTM-aist/src/lib/coil/common/coil/TimeValue.hwarning:: 191deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]:
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
94/root/OpenRTM-aist/src/lib/rtm/../rtm/PortBase.h::590:: 7warning::  deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]warning
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
94:5: warning:      * @param type ConfigurationSetListenerType型の値。deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
:5:/usr/include/clang/6.0.0/include/stddef.h :warning100: :deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]18
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h/root/OpenRTM-aist/src/lib/rtm/../rtm/PortCallback.h::94169::57::  warningnote: : deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]previous command '@brief' here
warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
warning/root/OpenRTM-aist/src/lib/rtm/../rtm/ConfigAdmin.h: :deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]750
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
warning/root/OpenRTM-aist/src/lib/coil/common/coil/Properties.h: :deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]1054
warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h5::384 :warning9: :deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete] 
:/root/OpenRTM-aist/src/lib/rtm/../rtm/RTObject.h94::48035/root/OpenRTM-aist/src/lib/rtm/../rtm/RTObject.h:::9 5372:warning: : 9notedeleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]:: 
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
:/root/OpenRTM-aist/src/lib/rtm/../rtm/OutPortBase.h94::9215::9 :warning : notedeleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]: 
deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
: /root/OpenRTM-aist/src/lib/coil/common/coil/Logger.hwarning:: 173deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]:
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: /root/OpenRTM-aist/src/lib/rtm/../rtm/ConfigurationListener.hdeleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]:
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
:/root/OpenRTM-aist/src/lib/coil/posix/coil/Condition.h5::171 :warning15: :deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete] 
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]
/root/OpenRTM-aist/src/lib/rtm/../rtm/Factory.h:94:5: warning: deleting pointer to incomplete type 'RTC::RTObject_impl' may cause undefined behavior [-Wdelete-incomplete]

Environment

Additional context none

r-kurose commented 5 years ago

追加です。

538044  /root/OpenRTM-aist/src/lib/rtm/../rtm/MultilayerCompositeEC.h:153:13: warning: 'RTC_exp::MultilayerCompositeEC::ChildTask' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
782632  /root/OpenRTM-aist/src/lib/rtm/../rtm/MultilayerCompositeEC.h:153:13: warning: 'RTC_exp::MultilayerCompositeEC::ChildTask' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
1763120 /root/OpenRTM-aist/src/lib/rtm/../rtm/EventBase.h:25:9: warning: 'RTC::EventBinderBase0' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
1835294 /root/OpenRTM-aist/src/lib/rtm/../rtm/EventBase.h:25:9: warning: 'RTC::EventBinderBase0' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
1835794 /root/OpenRTM-aist/src/lib/rtm/../rtm/EventBase.h:25:9: warning: 'RTC::EventBinderBase0' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
1839500 :/root/OpenRTM-aist/src/lib/coil/common/coil/Properties.h31::110928::9 :warning : note'RTC::EventBinderBase1<RTC::TimedLong>' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]:
1901178 'RTC::EventBinderBase0' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]       ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1908003 :In file included from  /root/OpenRTM-aist/src/lib/rtm/../rtm/RTC.hwarning:: 62'RTC::EventBinderBase0' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]:
1909304 /root/OpenRTM-aist/src/lib/rtm/../rtm/EventBase.h:31:28: warning:     inline ServiceProfileList* _retn() { ServiceProfileList* tmp = _pd_seq; _pd_seq = 0; return tmp; }'RTC::EventBinderBase1<RTC::TimedLong>' has virtual functions but non-virtual destructor [-Wnon-vir
tual-dtor]