You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/01/21 07:39:38 UTC

[GitHub] [tvm] ggardet opened a new issue #7319: GCC10: warning: catching polymorphic type 'struct dmlc::Error' by value

ggardet opened a new issue #7319:
URL: https://github.com/apache/tvm/issues/7319


   With GCC10, there is the following warning:
   ```
   [ 1395s] /home/abuild/rpmbuild/BUILD/incubator-tvm-0.7.0/tests/cpp/ir_functor_test.cc: In member function 'virtual void IRF_ExprTransform_Test::TestBody()':
   [ 1395s] /home/abuild/rpmbuild/BUILD/incubator-tvm-0.7.0/tests/cpp/ir_functor_test.cc:75:18: warning: catching polymorphic type 'struct dmlc::Error' by value [-Wcatch-value=]
   [ 1395s]    75 |   } catch (dmlc::Error) {
   [ 1395s]       |                  ^~~~~
   ```
   Something like `} catch (dmlc::Error&) {` should fix it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] tqchen commented on issue #7319: GCC10: warning: catching polymorphic type 'struct dmlc::Error' by value

Posted by GitBox <gi...@apache.org>.
tqchen commented on issue #7319:
URL: https://github.com/apache/tvm/issues/7319#issuecomment-764896482


   thanks @ggardet can you send a new PR ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] merrymercy closed issue #7319: GCC10: warning: catching polymorphic type 'struct dmlc::Error' by value

Posted by GitBox <gi...@apache.org>.
merrymercy closed issue #7319:
URL: https://github.com/apache/tvm/issues/7319


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] merrymercy closed issue #7319: GCC10: warning: catching polymorphic type 'struct dmlc::Error' by value

Posted by GitBox <gi...@apache.org>.
merrymercy closed issue #7319:
URL: https://github.com/apache/tvm/issues/7319


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] tqchen commented on issue #7319: GCC10: warning: catching polymorphic type 'struct dmlc::Error' by value

Posted by GitBox <gi...@apache.org>.
tqchen commented on issue #7319:
URL: https://github.com/apache/tvm/issues/7319#issuecomment-764896482


   thanks @ggardet can you send a new PR ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org