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

Typename.h におけるオーバーロードエラー #766

Closed r-kurose closed 4 years ago

r-kurose commented 4 years ago

Describe the bug

760 のマージから、コンパイルエラーが発生する。

[252/262] /usr/bin/clang++  -DShortToDoubleSerializer_EXPORTS -D__linux__ -D__x86__ -I/tmp/OpenRTM-aist/src/lib/coil/common -I/tmp/OpenRTM-aist/src/lib/coil/posix -I/tmp/OpenRTM-aist/src/lib -isystem src/lib/rtm/idl -isystem src/lib -O3 -DNDEBUG -fPIC   -std=c++11 -Werror -Weverything -Wno-documentation -Wno-documentation-unknown-command -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-cast-qual -Wno-conversion -Wno-covered-switch-default -Wno-deprecated -Wno-disabled-macro-expansion -Wno-double-promotion -Wno-exit-time-destructors -Wno-format-nonliteral -Wno-global-constructors -Wno-header-hygiene -Wno-inconsistent-missing-destructor-override -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-reserved-id-macro -Wno-shadow-field-in-constructor -Wno-shadow-field -Wno-shorten-64-to-32 -Wno-sign-compare -Wno-sign-conversion -Wno-switch-enum -Wno-tautological-unsigned-zero-compare -Wno-undefined-reinterpret-cast -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unreachable-code -Wno-unused-local-typedef -Wno-unused-macros -Wno-weak-vtables -pthread -MD -MT examples/Serializer/CMakeFiles/ShortToDoubleSerializer.dir/ShortToDoubleSerializer.cpp.o -MF examples/Serializer/CMakeFiles/ShortToDoubleSerializer.dir/ShortToDoubleSerializer.cpp.o.d -o examples/Serializer/CMakeFiles/ShortToDoubleSerializer.dir/ShortToDoubleSerializer.cpp.o -c /tmp/OpenRTM-aist/examples/Serializer/ShortToDoubleSerializer.cpp
FAILED: examples/Serializer/CMakeFiles/ShortToDoubleSerializer.dir/ShortToDoubleSerializer.cpp.o 
/usr/bin/clang++  -DShortToDoubleSerializer_EXPORTS -D__linux__ -D__x86__ -I/tmp/OpenRTM-aist/src/lib/coil/common -I/tmp/OpenRTM-aist/src/lib/coil/posix -I/tmp/OpenRTM-aist/src/lib -isystem src/lib/rtm/idl -isystem src/lib -O3 -DNDEBUG -fPIC   -std=c++11 -Werror -Weverything -Wno-documentation -Wno-documentation-unknown-command -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-cast-qual -Wno-conversion -Wno-covered-switch-default -Wno-deprecated -Wno-disabled-macro-expansion -Wno-double-promotion -Wno-exit-time-destructors -Wno-format-nonliteral -Wno-global-constructors -Wno-header-hygiene -Wno-inconsistent-missing-destructor-override -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-old-style-cast -Wno-reserved-id-macro -Wno-shadow-field-in-constructor -Wno-shadow-field -Wno-shorten-64-to-32 -Wno-sign-compare -Wno-sign-conversion -Wno-switch-enum -Wno-tautological-unsigned-zero-compare -Wno-undefined-reinterpret-cast -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unreachable-code -Wno-unused-local-typedef -Wno-unused-macros -Wno-weak-vtables -pthread -MD -MT examples/Serializer/CMakeFiles/ShortToDoubleSerializer.dir/ShortToDoubleSerializer.cpp.o -MF examples/Serializer/CMakeFiles/ShortToDoubleSerializer.dir/ShortToDoubleSerializer.cpp.o.d -o examples/Serializer/CMakeFiles/ShortToDoubleSerializer.dir/ShortToDoubleSerializer.cpp.o -c /tmp/OpenRTM-aist/examples/Serializer/ShortToDoubleSerializer.cpp
In file included from /tmp/OpenRTM-aist/examples/Serializer/ShortToDoubleSerializer.cpp:11:
In file included from /tmp/OpenRTM-aist/src/lib/rtm/ByteDataStreamBase.h:25:
/tmp/OpenRTM-aist/src/lib/rtm/Typename.h:127:15: error: no viable overloaded '<<='
      any_var <<= tmp_var;

To Reproduce

  1. apt install clang-8
  2. CXX=clang++-8 cmake -DCMAKE_BUILD_TYPE=Release ...
  3. cmake --build ...

Reproducibility 100%

Expected behavior コンパイルエラーがないこと

Screenshots or Logs compile_error.log

Environment

Additional context なし

r-kurose commented 4 years ago

マージ後にビルド通ることを確認しました。