Open llvmbot opened 6 years ago
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?
I just reproduced this bug with the Xcode 11 GM on macOS Catalina beta.
Should the Component be re-categorized as C++17?
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
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
.
Extended Description
I've prepared a single example which throws
std::bad_any_cast
.At first glance it should work (no problems with gcc).