Open tschneidereit opened 4 months ago
I just realized that this is covered by a test since #1444. @scoopr and @emilio, am I missing a reason for why this behavior is indeed correct? I see no discussion of this part of the PR.
Ah, are you referring specifically to the enum value? That indeed looks suspicious, and I might of missed it when I was worrying about the duplication of the types, and just trusted the value generated. This was quite a while ago and I can't quite recall precisely.
Yeah, I think the value is wrong, but in this case it's likely clang lying to us about what the value is unfortunately... Would need to debug this properly, but it's a bug.
Input C/C++ Header
Bindgen Invocation
Tested both with the current release and current
main
:Actual Results
Expected Results
I would expect to see the same enum generated as for a non-templated class. Removing the first line of
input.h
results in this generated code: