Skip to content
Discussion options

You must be logged in to vote

Short answer: not your fault, and not a bug in your code. It's a GCC false positive, and the code it's complaining about is pybind11's own — new code that landed in 3.0.2. Your module is fine. It's also, as far as I can tell, unreported, so it's worth a proper bug report.

What the warning is actually pointing at

#3014 is a different problem (that one is Eigen's DenseStorage.h inlined into the Eigen type caster; its workaround landed in #5516 and is already in your 3.0.4). Same diagnostic name, same "GCC + optimizer + a pybind11 header" shape, different code.

Yours decodes cleanly onto pybind11 3.0.x internals:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sytoplis
Comment options

Answer selected by Sytoplis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants