Open Quuxplusone opened 6 years ago
Attached std_any.tar.gz
(1096 bytes, application/gzip): example
I've run into this same problem; thanks for reporting it and providing the reproducible example. I've tested the example with clang6 and gcc8 on bionic, and only clang exhibits the problem. Furthermore, if I modify the example to use boost::any instead of std::any, then it still works with clang. It seems to be an issue with clang std::any.
Here's the issue report for my downstream code affected by this bug:
https://bitbucket.org/osrf/sdformat/issues/202/bad_any_cast-after-element-getany-with
Should the Component be re-categorized as C++17?
I just reproduced this bug with the Xcode 11 GM on macOS Catalina beta.
I just tested again with Apple clang version 11.0.3 (clang-1103.0.32.62) on macOS 10.15.7, and I'm not able to reproduce the problem. So, I guess it has been fixed?
std_any.tar.gz
(1096 bytes, application/gzip)