-
Notifications
You must be signed in to change notification settings - Fork 745
__attribute__((overloadable)) function has wrong name #1350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Yeah, we do Should be pretty easy to fix though, thanks for the report! |
emilio
added a commit
to emilio/rust-bindgen
that referenced
this issue
Nov 5, 2018
…verloadable). Fixes rust-lang#1350
bors-servo
pushed a commit
that referenced
this issue
Nov 5, 2018
codegen: Make the mangling name check work in presence of attribute(overloadable). Fixes #1350
Hmm, fwiw, that testcase in some compilers it complains hard:
|
emilio
added a commit
to emilio/rust-bindgen
that referenced
this issue
Nov 5, 2018
…verloadable). Fixes rust-lang#1350
bors-servo
pushed a commit
that referenced
this issue
Nov 6, 2018
codegen: Make the mangling name check work in presence of attribute(overloadable). Fixes #1350
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input C Header
Bindgen Invocation
Actual Results
Expected Results
Normally bindgen gets things correct with the overloadable attribute, but in this specific case (when overloadable comes first followed by a function without it), the second function has the wrong name, and the binding doesn't work.
The text was updated successfully, but these errors were encountered: